2001-12-21 Richard M. Stallman <rms@gnu.org>
+ * help.el (view-order-manuals, view-emacs-news, describe-copying)
+ (describe-distribution, describe-project): Use view-file.
+
* emacs-lisp/cl-indent.el (define-modify-macro): Better indent spec.
* net/ange-ftp.el (ange-ftp-file-modtime): Use save-match-data.
(defun describe-distribution ()
"Display info on how to obtain the latest version of GNU Emacs."
(interactive)
- (find-file-read-only
- (expand-file-name "DISTRIB" data-directory)))
+ (view-find (expand-file-name "DISTRIB" data-directory)))
(defun describe-copying ()
"Display info on how you may redistribute copies of GNU Emacs."
(interactive)
- (find-file-read-only
- (expand-file-name "COPYING" data-directory))
+ (view-file (expand-file-name "COPYING" data-directory))
(goto-char (point-min)))
(defun describe-project ()
"Display info on the GNU project."
(interactive)
- (find-file-read-only
- (expand-file-name "THE-GNU-PROJECT" data-directory))
+ (view-file (expand-file-name "THE-GNU-PROJECT" data-directory))
(goto-char (point-min)))
(defun describe-no-warranty ()
nil "^ONEWS\\.[0-9]+$"
nil)))))))
(if file
- (find-file-read-only (expand-file-name file data-directory))
+ (view-file (expand-file-name file data-directory))
(error "No such old news"))))
(defun view-order-manuals ()
"Display the Emacs ORDERS file."
(interactive)
- (find-file-read-only (expand-file-name "ORDERS" data-directory))
+ (view-file (expand-file-name "ORDERS" data-directory))
(goto-address))
(defun view-emacs-FAQ ()