]> git.eshelyaron.com Git - emacs.git/commitdiff
* help-fns.el (describe-variable): Add info about safe local variables.
authorDan Nicolaescu <dann@ics.uci.edu>
Sat, 29 Apr 2006 21:18:05 +0000 (21:18 +0000)
committerDan Nicolaescu <dann@ics.uci.edu>
Sat, 29 Apr 2006 21:18:05 +0000 (21:18 +0000)
* custom.texi (Examining): Update C-h v output example.

lisp/ChangeLog
lisp/help-fns.el
man/ChangeLog
man/custom.texi

index d758347a5c8aa285e84e4a16688edaa5a9896c9d..55893760f367a4b921f56c1f4aeb98bc8c400a18 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-29  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * help-fns.el (describe-variable): Add info about safe local variables.
+
 2006-04-29  Richard Stallman  <rms@gnu.org>
 
        * net/tramp.el (tramp-file-name-handler-alist): Delete
index d30fc02c409eae579ee0028ebd7f4dd44163f486..2b75e7fd053dd723c108136ceb20bbd7eb0fcc6b 100644 (file)
@@ -630,6 +630,7 @@ it is displayed along with the global value."
                              (indirect-variable variable)
                            (error variable)))
                    (obsolete (get variable 'byte-obsolete-variable))
+                  (safe-var (get variable 'safe-local-variable))
                    (doc (or (documentation-property variable 'variable-documentation)
                             (documentation-property alias 'variable-documentation))))
               (unless (eq alias variable)
@@ -641,6 +642,11 @@ 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))
+               (terpri))
              (princ "Documentation:\n")
               (princ (or doc "Not documented as a variable.")))
            ;; Make a link to customize if this variable can be customized.
index 08db65e95e4675f518c7b3e95f50dea7bdd204c7..ff23fe67a1838e137e6a1f13bdfd25817ac988a1 100644 (file)
@@ -1,3 +1,7 @@
+2006-04-29  Dan Nicolaescu  <dann@ics.uci.edu>
+
+       * custom.texi (Examining): Update C-h v output example.
+
 2006-04-29  Kim F. Storm  <storm@cua.dk>
 
        * building.texi (Grep Searching): Add lgrep and rgrep.
index f133e890b0a419f845ca5540d0f2e6120119f58e..35c9222628c8db974fba3af7a5d747351e1b344a 100644 (file)
@@ -822,6 +822,9 @@ fill-column's value is 70
 Local in buffer custom.texi; global value is 70
 Automatically becomes buffer-local when set in any fashion.
 
+This variable is safe to use as a file local variable only if its value
+satisfies the predicate `integerp'.
+
 Documentation:
 *Column beyond which automatic line-wrapping should happen.
 Interactively, you can set the buffer local value using C-x f.