diff options
| author | Glenn Morris | 2007-10-25 03:51:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-25 03:51:50 +0000 |
| commit | fd045a341b7046b5ae0826512d93a4c0e59f882b (patch) | |
| tree | 5298c915413a1361e635a8be9b40bcc6877bb401 | |
| parent | b1ca774080d290dcb447075988073d1495721aaa (diff) | |
| download | emacs-fd045a341b7046b5ae0826512d93a4c0e59f882b.tar.gz emacs-fd045a341b7046b5ae0826512d93a4c0e59f882b.zip | |
(custom-declare-variable): Add :risky and :safe keywords.
(defcustom): Doc fix.
| -rw-r--r-- | lisp/custom.el | 6 |
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." | |||
| 168 | (put symbol 'custom-get value)) | 168 | (put symbol 'custom-get value)) |
| 169 | ((eq keyword :require) | 169 | ((eq keyword :require) |
| 170 | (push value requests)) | 170 | (push value requests)) |
| 171 | ((eq keyword :risky) | ||
| 172 | (put symbol 'risky-local-variable value)) | ||
| 173 | ((eq keyword :safe) | ||
| 174 | (put symbol 'safe-local-variable value)) | ||
| 171 | ((eq keyword :type) | 175 | ((eq keyword :type) |
| 172 | (put symbol 'custom-type (purecopy value))) | 176 | (put symbol 'custom-type (purecopy value))) |
| 173 | ((eq keyword :options) | 177 | ((eq keyword :options) |
| @@ -219,6 +223,8 @@ The following keywords are meaningful: | |||
| 219 | VALUE should be a feature symbol. If you save a value | 223 | VALUE should be a feature symbol. If you save a value |
| 220 | for this option, then when your `.emacs' file loads the value, | 224 | for this option, then when your `.emacs' file loads the value, |
| 221 | it does (require VALUE) first. | 225 | it does (require VALUE) first. |
| 226 | :risky Set SYMBOL's `risky-local-variable' property to VALUE. | ||
| 227 | :safe Set SYMBOL's `safe-local-variable' property to VALUE. | ||
| 222 | 228 | ||
| 223 | The following common keywords are also meaningful. | 229 | The following common keywords are also meaningful. |
| 224 | 230 | ||