+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.
(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.")))