]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-variable): Don't print safe-var if it is
authorReiner Steib <Reiner.Steib@gmx.de>
Thu, 11 May 2006 11:03:57 +0000 (11:03 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Thu, 11 May 2006 11:03:57 +0000 (11:03 +0000)
byte-code.  Improve wording as suggested by Luc Teirlinck
<teirllm@auburn.edu>.

lisp/ChangeLog
lisp/help-fns.el

index ea8fdc06a402890ff71a9aae98eddcade03a6193..3b7c47339ca9c82566094f85391789b884ccee0c 100644 (file)
@@ -1,3 +1,9 @@
+2006-05-11  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * help-fns.el (describe-variable): Don't print safe-var if it is
+       byte-code.  Improve wording as suggested by Luc Teirlinck
+       <teirllm@auburn.edu>.
+
 2006-05-11  Nick Roberts  <nickrob@snap.net.nz>
 
        * progmodes/gdb-ui.el (gdb-reset): Update speedbar if necessary.
index 2b75e7fd053dd723c108136ceb20bbd7eb0fcc6b..c56d517aed39fd1ae0250338b1576bb0f41938ca 100644 (file)
@@ -642,10 +642,12 @@ it is displayed along with the global value."
                 (princ (if (stringp (car obsolete)) (car obsolete)
                          (format "use `%s' instead." (car obsolete))))
                 (terpri))
-             (when safe-var 
-               (princ "This variable is safe to use as a file local variable")
-               (princ (format " only if its value\nsatisfies the predicate `%s'.\n"
-                              safe-var))
+             (when safe-var
+               (princ "\n\nThis variable is safe as a file local variable ")
+               (princ "if its value\nsatisfies the predicate ")
+               (princ (if (byte-code-function-p safe-var)
+                          "which is byte-compiled expression.\n"
+                        (format "`%s'.\n" safe-var)))
                (terpri))
              (princ "Documentation:\n")
               (princ (or doc "Not documented as a variable.")))