Mercurial > emacs
changeset 85618:e2b55f3f0f2b
(custom-declare-variable): Add :risky and :safe keywords.
(defcustom): Doc fix.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 25 Oct 2007 03:51:50 +0000 |
parents | 4cbfa6e02bcd |
children | fdebfdb3729e |
files | lisp/custom.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/custom.el Thu Oct 25 03:51:15 2007 +0000 +++ b/lisp/custom.el Thu Oct 25 03:51:50 2007 +0000 @@ -168,6 +168,10 @@ (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 @@ 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.