summaryrefslogtreecommitdiff
path: root/lisp/custom.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-10-25 03:51:50 +0000
committerGlenn Morris <rgm@gnu.org>2007-10-25 03:51:50 +0000
commitfd045a341b7046b5ae0826512d93a4c0e59f882b (patch)
tree5298c915413a1361e635a8be9b40bcc6877bb401 /lisp/custom.el
parentb1ca774080d290dcb447075988073d1495721aaa (diff)
downloademacs-fd045a341b7046b5ae0826512d93a4c0e59f882b.tar.gz
(custom-declare-variable): Add :risky and :safe keywords.
(defcustom): Doc fix.
Diffstat (limited to 'lisp/custom.el')
-rw-r--r--lisp/custom.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 5138f800972..95abaa55da3 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -168,6 +168,10 @@ set to nil, as the value is no longer rogue."
(put symbol 'custom-get value))
((eq keyword :require)
(push value requests))
+ ((eq keyword :risky)
+ (put symbol 'risky-local-variable value))
+ ((eq keyword :safe)
+ (put symbol 'safe-local-variable value))
((eq keyword :type)
(put symbol 'custom-type (purecopy value)))
((eq keyword :options)
@@ -219,6 +223,8 @@ The following keywords are meaningful:
VALUE should be a feature symbol. If you save a value
for this option, then when your `.emacs' file loads the value,
it does (require VALUE) first.
+:risky Set SYMBOL's `risky-local-variable' property to VALUE.
+:safe Set SYMBOL's `safe-local-variable' property to VALUE.
The following common keywords are also meaningful.