annotate lisp/vm/vm-license.el @ 155:43dd3413c7c7 r20-3b4

Import from CVS: tag r20-3b4
author cvs
date Mon, 13 Aug 2007 09:39:39 +0200
parents 131b0175ea99
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; Code to show VM's warranty and copying restrictions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 ;;; Copyright (C) 1989, 1994 Kyle E. Jones
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;;; This program is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;;; the Free Software Foundation; either version 1, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 ;;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 ;;; This program is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;;;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 ;;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;;; along with this program; if not, write to the Free Software
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 (provide 'vm-license)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 (defun vm-show-copying-restrictions (&optional warranty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 (require 'info)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 (let ((pop-up-windows (eq vm-mutable-windows t))
155
43dd3413c7c7 Import from CVS: tag r20-3b4
cvs
parents: 70
diff changeset
24 (pop-up-frames (and vm-mutable-frames vm-frame-per-help)))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 (or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 (condition-case ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 (progn (Info-goto-node "(vm)License") t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 (error nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 (condition-case ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 (progn (Info-goto-node "(vm.info)License") t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (error nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 (error "VM Info documentation appears not to be installed"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 (vm-display (current-buffer) t nil nil)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 (vm-display nil nil '(vm-show-copying-restrictions vm-show-no-warranty)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (list this-command))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 (if warranty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 (let ((case-fold-search nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 (search-forward "NO WARRANTY\n" nil t)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 (forward-line -1)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (set-window-start (selected-window) (point))))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (defun vm-show-no-warranty ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 "Display \"NO WARRANTY\" section of the GNU General Public License."
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 (interactive)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 (vm-show-copying-restrictions t))