]> git.eshelyaron.com Git - emacs.git/commitdiff
(view-emacs-news): Handle prefix arg.
authorRichard M. Stallman <rms@gnu.org>
Wed, 18 Mar 1998 01:59:58 +0000 (01:59 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 18 Mar 1998 01:59:58 +0000 (01:59 +0000)
lisp/help.el

index 41f8470fa20e9d3fb7a2ebf22738b08a3c6be9ef..b16adbdd8e2c0a6ab7aa8ab554ce78eeaf80432b 100644 (file)
@@ -416,10 +416,14 @@ of the key sequence that ran this command."
 ;; run describe-prefix-bindings.
 (setq prefix-help-command 'describe-prefix-bindings)
 
-(defun view-emacs-news ()
-  "Display info on recent changes to Emacs."
-  (interactive)
-  (find-file-read-only (expand-file-name "NEWS" data-directory)))
+(defun view-emacs-news (&optional arg)
+  "Display info on recent changes to Emacs.
+With numeric argument display information on correspondingly older changes."
+  (interactive "P")
+  (let* ((arg (if arg (prefix-numeric-value arg) 0)))
+    (find-file-read-only
+     (expand-file-name (concat (make-string arg ?O) "NEWS")
+                      data-directory))))
 
 (defun view-emacs-FAQ ()
   "Display the Emacs Frequently Asked Questions (FAQ) file."