diff options
| -rw-r--r-- | lisp/help.el | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lisp/help.el b/lisp/help.el index c9c816bbc65..abb59fc0b16 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -436,12 +436,19 @@ of the key sequence that ran this command." | |||
| 436 | 436 | ||
| 437 | (defun view-emacs-news (&optional arg) | 437 | (defun view-emacs-news (&optional arg) |
| 438 | "Display info on recent changes to Emacs. | 438 | "Display info on recent changes to Emacs. |
| 439 | With numeric argument display information on correspondingly older changes." | 439 | With numeric argument, display information on correspondingly older changes." |
| 440 | (interactive "P") | 440 | (interactive "P") |
| 441 | (let* ((arg (if arg (prefix-numeric-value arg) 0))) | 441 | (let* ((arg (if arg (prefix-numeric-value arg) 0)) |
| 442 | (find-file-read-only | 442 | (file (cond ((eq arg 0) "NEWS") |
| 443 | (expand-file-name (concat (make-string arg ?O) "NEWS") | 443 | ((eq arg 1) "ONEWS") |
| 444 | data-directory)))) | 444 | (t |
| 445 | (nth (- arg 2) | ||
| 446 | (nreverse (directory-files data-directory | ||
| 447 | nil "^NEWS\\.[0-9]+$" | ||
| 448 | nil))))))) | ||
| 449 | (if file | ||
| 450 | (find-file-read-only (expand-file-name file data-directory)) | ||
| 451 | (error "No such old news")))) | ||
| 445 | 452 | ||
| 446 | (defun view-emacs-FAQ () | 453 | (defun view-emacs-FAQ () |
| 447 | "Display the Emacs Frequently Asked Questions (FAQ) file." | 454 | "Display the Emacs Frequently Asked Questions (FAQ) file." |