aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2006-04-18 21:20:03 +0000
committerRichard M. Stallman2006-04-18 21:20:03 +0000
commite58cec15eb396522c37329e43192e9b6c3098ea2 (patch)
tree9d2916b508c596fe3dff1a9a5383e897dacee670
parent7561ff7493cf693c78c823b2fd1e7d0cfd50c8e4 (diff)
downloademacs-e58cec15eb396522c37329e43192e9b6c3098ea2.tar.gz
emacs-e58cec15eb396522c37329e43192e9b6c3098ea2.zip
(enable-local-variables): Allow :all as value.
(hack-local-variables): Implement that value. (safe-local-variable-values, safe-local-eval-forms) (enable-local-variables): Mark as risky. (find-file-visit-truename, kept-old-versions): Mark safe.
-rw-r--r--lisp/files.el11
1 files changed, 10 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index cd474e868d0..df63e016c63 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -452,6 +452,8 @@ not safe, Emacs queries you, once, whether to set them all.
452\(When you say yes to certain values, they are remembered as safe.) 452\(When you say yes to certain values, they are remembered as safe.)
453 453
454:safe means set the safe variables, and ignore the rest. 454:safe means set the safe variables, and ignore the rest.
455:all means set all variables, whether safe or not.
456 (Don't set it permanently to :all.)
455nil means always ignore the file local variables. 457nil means always ignore the file local variables.
456 458
457Any other value means always query you once whether to set them all. 459Any other value means always query you once whether to set them all.
@@ -464,8 +466,9 @@ a -*- line.
464The command \\[normal-mode], when used interactively, 466The command \\[normal-mode], when used interactively,
465always obeys file local variable specifications and the -*- line, 467always obeys file local variable specifications and the -*- line,
466and ignores this variable." 468and ignores this variable."
467 :type '(choice (const :tag "Obey" t) 469 :type '(choice (const :tag "Query Unsafe" t)
468 (const :tag "Safe Only" :safe) 470 (const :tag "Safe Only" :safe)
471 (const :tag "Do all" :all)
469 (const :tag "Ignore" nil) 472 (const :tag "Ignore" nil)
470 (other :tag "Query" other)) 473 (other :tag "Query" other))
471 :group 'find-file) 474 :group 'find-file)
@@ -2283,6 +2286,7 @@ asking you for confirmation."
2283 default-text-properties 2286 default-text-properties
2284 display-time-string 2287 display-time-string
2285 enable-local-eval 2288 enable-local-eval
2289 enable-local-variables
2286 eval 2290 eval
2287 exec-directory 2291 exec-directory
2288 exec-path 2292 exec-path
@@ -2318,6 +2322,8 @@ asking you for confirmation."
2318 parse-time-rules 2322 parse-time-rules
2319 process-environment 2323 process-environment
2320 rmail-output-file-alist 2324 rmail-output-file-alist
2325 safe-local-variable-values
2326 safe-local-eval-forms
2321 save-some-buffers-action-alist 2327 save-some-buffers-action-alist
2322 special-display-buffer-names 2328 special-display-buffer-names
2323 standard-input 2329 standard-input
@@ -2355,9 +2361,11 @@ asking you for confirmation."
2355 (c-indent-level . integerp) 2361 (c-indent-level . integerp)
2356 (comment-column . integerp) 2362 (comment-column . integerp)
2357 (compile-command . string-or-null-p) 2363 (compile-command . string-or-null-p)
2364 (find-file-visit-truename . t)
2358 (fill-column . integerp) 2365 (fill-column . integerp)
2359 (fill-prefix . string-or-null-p) 2366 (fill-prefix . string-or-null-p)
2360 (indent-tabs-mode . t) 2367 (indent-tabs-mode . t)
2368 (kept-old-versions . integerp)
2361 (kept-new-versions . integerp) 2369 (kept-new-versions . integerp)
2362 (left-margin . t) 2370 (left-margin . t)
2363 (no-byte-compile . t) 2371 (no-byte-compile . t)
@@ -2630,6 +2638,7 @@ is specified, returning t if it is specified."
2630 (if (or (and (eq enable-local-variables t) 2638 (if (or (and (eq enable-local-variables t)
2631 (null unsafe-vars) 2639 (null unsafe-vars)
2632 (null risky-vars)) 2640 (null risky-vars))
2641 (eq enable-local-variables :all)
2633 (hack-local-variables-confirm 2642 (hack-local-variables-confirm
2634 result unsafe-vars risky-vars)) 2643 result unsafe-vars risky-vars))
2635 (dolist (elt result) 2644 (dolist (elt result)