aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2006-04-29 21:18:05 +0000
committerDan Nicolaescu2006-04-29 21:18:05 +0000
commit084a663812cac322d965fb55278bfa171092850e (patch)
tree2661a7609710b07a18c51443b034ec29189f7b0a
parent7c47913be1bb883737220309d93d0359a9c9d096 (diff)
downloademacs-084a663812cac322d965fb55278bfa171092850e.tar.gz
emacs-084a663812cac322d965fb55278bfa171092850e.zip
* help-fns.el (describe-variable): Add info about safe local variables.
* custom.texi (Examining): Update C-h v output example.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/help-fns.el6
-rw-r--r--man/ChangeLog4
-rw-r--r--man/custom.texi3
4 files changed, 17 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d758347a5c8..55893760f36 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12006-04-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * help-fns.el (describe-variable): Add info about safe local variables.
4
12006-04-29 Richard Stallman <rms@gnu.org> 52006-04-29 Richard Stallman <rms@gnu.org>
2 6
3 * net/tramp.el (tramp-file-name-handler-alist): Delete 7 * net/tramp.el (tramp-file-name-handler-alist): Delete
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index d30fc02c409..2b75e7fd053 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -630,6 +630,7 @@ it is displayed along with the global value."
630 (indirect-variable variable) 630 (indirect-variable variable)
631 (error variable))) 631 (error variable)))
632 (obsolete (get variable 'byte-obsolete-variable)) 632 (obsolete (get variable 'byte-obsolete-variable))
633 (safe-var (get variable 'safe-local-variable))
633 (doc (or (documentation-property variable 'variable-documentation) 634 (doc (or (documentation-property variable 'variable-documentation)
634 (documentation-property alias 'variable-documentation)))) 635 (documentation-property alias 'variable-documentation))))
635 (unless (eq alias variable) 636 (unless (eq alias variable)
@@ -641,6 +642,11 @@ it is displayed along with the global value."
641 (princ (if (stringp (car obsolete)) (car obsolete) 642 (princ (if (stringp (car obsolete)) (car obsolete)
642 (format "use `%s' instead." (car obsolete)))) 643 (format "use `%s' instead." (car obsolete))))
643 (terpri)) 644 (terpri))
645 (when safe-var
646 (princ "This variable is safe to use as a file local variable")
647 (princ (format " only if its value\nsatisfies the predicate `%s'.\n"
648 safe-var))
649 (terpri))
644 (princ "Documentation:\n") 650 (princ "Documentation:\n")
645 (princ (or doc "Not documented as a variable."))) 651 (princ (or doc "Not documented as a variable.")))
646 ;; Make a link to customize if this variable can be customized. 652 ;; Make a link to customize if this variable can be customized.
diff --git a/man/ChangeLog b/man/ChangeLog
index 08db65e95e4..ff23fe67a18 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12006-04-29 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * custom.texi (Examining): Update C-h v output example.
4
12006-04-29 Kim F. Storm <storm@cua.dk> 52006-04-29 Kim F. Storm <storm@cua.dk>
2 6
3 * building.texi (Grep Searching): Add lgrep and rgrep. 7 * building.texi (Grep Searching): Add lgrep and rgrep.
diff --git a/man/custom.texi b/man/custom.texi
index f133e890b0a..35c9222628c 100644
--- a/man/custom.texi
+++ b/man/custom.texi
@@ -822,6 +822,9 @@ fill-column's value is 70
822Local in buffer custom.texi; global value is 70 822Local in buffer custom.texi; global value is 70
823Automatically becomes buffer-local when set in any fashion. 823Automatically becomes buffer-local when set in any fashion.
824 824
825This variable is safe to use as a file local variable only if its value
826satisfies the predicate `integerp'.
827
825Documentation: 828Documentation:
826*Column beyond which automatic line-wrapping should happen. 829*Column beyond which automatic line-wrapping should happen.
827Interactively, you can set the buffer local value using C-x f. 830Interactively, you can set the buffer local value using C-x f.