changeset 93215:53d5f10d34bc

(describe-function-1, describe-variable): If no replacement is provided, don't print "use nil instead".
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 26 Mar 2008 02:36:45 +0000
parents 6c8ba5893159
children 298da4c56fcb
files lisp/ChangeLog lisp/help-fns.el
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Mar 26 02:29:43 2008 +0000
+++ b/lisp/ChangeLog	Wed Mar 26 02:36:45 2008 +0000
@@ -1,3 +1,8 @@
+2008-03-26  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* help-fns.el (describe-function-1, describe-variable): If no
+	replacement is provided, don't print "use nil instead".
+
 2008-03-25  Roland Winkler  <Roland.Winkler@physik.uni-erlangen.de>
 
 	* proced.el: Update copyright.
--- a/lisp/help-fns.el	Wed Mar 26 02:29:43 2008 +0000
+++ b/lisp/help-fns.el	Wed Mar 26 02:36:45 2008 +0000
@@ -431,7 +431,8 @@
               (insert (format " since %s" (nth 2 obsolete))))
             (insert ";\n"
                     (if (stringp (car obsolete)) (car obsolete)
-                      (format "use `%s' instead." (car obsolete)))
+                      (if (null (car obsolete)) ""
+                        (format "use `%s' instead." (car obsolete))))
                     "\n"))
           (insert "\n"
                   (or doc "Not documented.")))))))
@@ -662,7 +663,8 @@
                 (if (cdr obsolete) (princ (format " since %s" (cdr obsolete))))
                 (princ ";\n  ")
                 (princ (if (stringp (car obsolete)) (car obsolete)
-                         (format "use `%s' instead." (car obsolete))))
+                         (if (null (car obsolete)) ""
+                           (format "use `%s' instead." (car obsolete)))))
                 (terpri))
 	      (when safe-var
                 (setq extra-line t)