changeset 42254:ffef7ba0b65d

(view-order-manuals, view-emacs-news, describe-copying) (describe-distribution, describe-project): Use view-file.
author Richard M. Stallman <rms@gnu.org>
date Sat, 22 Dec 2001 01:27:19 +0000
parents ac66be721ee2
children 262eaf1a389e
files lisp/help.el
diffstat 1 files changed, 5 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Sat Dec 22 00:03:08 2001 +0000
+++ b/lisp/help.el	Sat Dec 22 01:27:19 2001 +0000
@@ -250,21 +250,18 @@
 (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 ()
@@ -307,13 +304,13 @@
 						      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 ()