changeset 71487:e5f156e5a1b6

(view-emacs-news): Declare `res' in the right let* form.
author Kim F. Storm <storm@cua.dk>
date Sun, 25 Jun 2006 22:41:40 +0000
parents 0b855b098dcd
children 84c1a2317e0b
files lisp/help.el
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help.el	Sun Jun 25 22:41:31 2006 +0000
+++ b/lisp/help.el	Sun Jun 25 22:41:40 2006 +0000
@@ -346,8 +346,7 @@
 		     (directory-files data-directory nil
 				      "^NEWS\\.[0-9][-0-9]*$" nil)))
 	      (sort (delete-dups res) (lambda (a b) (string< b a)))))
-	   (current (car all-versions))
-	   res)
+	   (current (car all-versions)))
       (setq version (completing-read
 		     (format "Read NEWS for the version (default %s): " current)
 		     all-versions nil nil nil nil current))
@@ -369,7 +368,8 @@
 	 (file (cond
 		((>= vn emacs-major-version) "NEWS")
 		((< vn 18) "NEWS.1-17")
-		(t (format "NEWS.%d" vn)))))
+		(t (format "NEWS.%d" vn))))
+	 res)
     (view-file (expand-file-name file data-directory))
     (widen)
     (goto-char (point-min))