diff options
| author | Gerd Moellmann | 2000-08-17 15:36:54 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-17 15:36:54 +0000 |
| commit | f0753a5f45466cf891aae79dabe1df33ca1530fb (patch) | |
| tree | b62aad59c187e2beef1e5dcf62a3d114d4a18af5 | |
| parent | 03c9ed7793211df41b54804ea28797f3ca6d2932 (diff) | |
| download | emacs-f0753a5f45466cf891aae79dabe1df33ca1530fb.tar.gz emacs-f0753a5f45466cf891aae79dabe1df33ca1530fb.zip | |
(view-emacs-news): Rewritten for new naming scheme
for old NEWS files.
| -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." |