]> code.delx.au - gnu-emacs/blobdiff - lisp/help-fns.el
(display_tool_bar_line): Skip glyphs which are too big
[gnu-emacs] / lisp / help-fns.el
index 2b75e7fd053dd723c108136ceb20bbd7eb0fcc6b..69555feb170108e3942ae81cf16d381dd692be00 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 "This 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.")))