aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-09-01 00:26:58 +0000
committerRichard M. Stallman1992-09-01 00:26:58 +0000
commit2bba782ce5bb9038f0bcedf216a4863d72dd2448 (patch)
tree9b16116a8533efddc2d3a098d7825d525935c61a
parent450a90e2ea55a592346ed0a10d2e5a5e2597d920 (diff)
downloademacs-2bba782ce5bb9038f0bcedf216a4863d72dd2448.tar.gz
emacs-2bba782ce5bb9038f0bcedf216a4863d72dd2448.zip
*** empty log message ***
-rw-r--r--lisp/files.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a59c8eb5f86..545668d5660 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -175,7 +175,7 @@ nil means they are ignored; anything else means query.
175The command \\[normal-mode] always obeys local-variables lists 175The command \\[normal-mode] always obeys local-variables lists
176and ignores this variable.") 176and ignores this variable.")
177 177
178(defconst enable-local-eval nil 178(defconst enable-local-eval 'maybe
179 "*Control processing of the \"variable\" `eval' in a file's local variables. 179 "*Control processing of the \"variable\" `eval' in a file's local variables.
180The value can be t, nil or something else. 180The value can be t, nil or something else.
181A value of t means obey `eval' variables; 181A value of t means obey `eval' variables;
@@ -607,7 +607,8 @@ for current buffer."
607 (y-or-n-p (format "Set local variables as specified at end of %s? " 607 (y-or-n-p (format "Set local variables as specified at end of %s? "
608 (file-name-nondirectory buffer-file-name)))))))) 608 (file-name-nondirectory buffer-file-name))))))))
609 (let ((continue t) 609 (let ((continue t)
610 prefix prefixlen suffix beg) 610 prefix prefixlen suffix beg
611 (enable-local-eval enable-local-eval))
611 ;; The prefix is what comes before "local variables:" in its line. 612 ;; The prefix is what comes before "local variables:" in its line.
612 ;; The suffix is what comes after "local variables:" in its line. 613 ;; The suffix is what comes after "local variables:" in its line.
613 (skip-chars-forward " \t") 614 (skip-chars-forward " \t")
@@ -665,8 +666,9 @@ for current buffer."
665 (save-excursion 666 (save-excursion
666 (beginning-of-line) 667 (beginning-of-line)
667 (set-window-start (selected-window) (point))) 668 (set-window-start (selected-window) (point)))
668 (y-or-n-p (format "Process `eval' local variable in file %s? " 669 (setq enable-local-eval
669 (file-name-nondirectory buffer-file-name))))))) 670 (y-or-n-p (format "Process `eval' local variable in file %s? "
671 (file-name-nondirectory buffer-file-name))))))))
670 (save-excursion (eval val)) 672 (save-excursion (eval val))
671 (message "Ignoring `eval:' in file's local variables"))) 673 (message "Ignoring `eval:' in file's local variables")))
672 (t (make-local-variable var) 674 (t (make-local-variable var)