aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/custom.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/custom.el b/lisp/custom.el
index 29bf9e570a8..736460fec7b 100644
--- a/lisp/custom.el
+++ b/lisp/custom.el
@@ -181,6 +181,11 @@ set to nil, as the value is no longer rogue."
181 (put symbol 'risky-local-variable value)) 181 (put symbol 'risky-local-variable value))
182 ((eq keyword :safe) 182 ((eq keyword :safe)
183 (put symbol 'safe-local-variable value)) 183 (put symbol 'safe-local-variable value))
184 ((eq keyword :local)
185 (when (memq value '(t permanent))
186 (make-variable-buffer-local symbol))
187 (when (eq value 'permanent)
188 (put symbol 'permanent-local t)))
184 ((eq keyword :type) 189 ((eq keyword :type)
185 (put symbol 'custom-type (purecopy value))) 190 (put symbol 'custom-type (purecopy value)))
186 ((eq keyword :options) 191 ((eq keyword :options)
@@ -251,6 +256,9 @@ The following keywords are meaningful:
251:risky Set SYMBOL's `risky-local-variable' property to VALUE. 256:risky Set SYMBOL's `risky-local-variable' property to VALUE.
252:safe Set SYMBOL's `safe-local-variable' property to VALUE. 257:safe Set SYMBOL's `safe-local-variable' property to VALUE.
253 See Info node `(elisp) File Local Variables'. 258 See Info node `(elisp) File Local Variables'.
259:local If VALUE is t, mark SYMBOL as automatically buffer-local.
260 If VALUE is `permanent', also set SYMBOL's `permanent-local'
261 property to t.
254 262
255The following common keywords are also meaningful. 263The following common keywords are also meaningful.
256 264