aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-04 21:19:32 +0000
committerRichard M. Stallman2002-04-04 21:19:32 +0000
commitec4ba9e3bcde66ce8583c8cf531371127fa80a37 (patch)
tree48fba3b2e50ec2d09e3973cf61ad18e869114d76
parentd30121898c0f5c79aeaf4a93c8d163abba1611ce (diff)
downloademacs-ec4ba9e3bcde66ce8583c8cf531371127fa80a37.tar.gz
emacs-ec4ba9e3bcde66ce8583c8cf531371127fa80a37.zip
(mode-line-format, mode-line-modified)
(mode-line-mule-info, mode-line-buffer-identification) (mode-line-modes, mode-line-position): Explicitly mark as risky. (hack-one-local-variable): Don't recognize "mode-line-..." as risky.
-rw-r--r--lisp/files.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 8516212cdd7..23e4948e71a 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1934,6 +1934,12 @@ is specified, returning t if it is specified."
1934(put 'unread-command-events 'risky-local-variable t) 1934(put 'unread-command-events 'risky-local-variable t)
1935(put 'max-lisp-eval-depth 'risky-local-variable t) 1935(put 'max-lisp-eval-depth 'risky-local-variable t)
1936(put 'max-specpdl-size 'risky-local-variable t) 1936(put 'max-specpdl-size 'risky-local-variable t)
1937(put 'mode-line-format 'risky-local-variable t)
1938(put 'mode-line-modified 'risky-local-variable t)
1939(put 'mode-line-mule-info 'risky-local-variable t)
1940(put 'mode-line-buffer-identification 'risky-local-variable t)
1941(put 'mode-line-modes 'risky-local-variable t)
1942(put 'mode-line-position 'risky-local-variable t)
1937 1943
1938;; This one is safe because the user gets to check it before it is used. 1944;; This one is safe because the user gets to check it before it is used.
1939(put 'compile-command 'safe-local-variable t) 1945(put 'compile-command 'safe-local-variable t)
@@ -1957,7 +1963,7 @@ is considered risky."
1957 ;; Likewise for setting hook variables. 1963 ;; Likewise for setting hook variables.
1958 ((or (get var 'risky-local-variable) 1964 ((or (get var 'risky-local-variable)
1959 (and 1965 (and
1960 (string-match "-hooks?$\\|-functions?$\\|-forms?$\\|-program$\\|-command$\\|-predicate$\\|font-lock-keywords$\\|font-lock-keywords-[0-9]+$\\|font-lock-syntactic-keywords$\\|-frame-alist$\\|-mode-alist$\\|-map$\\|-map-alist$\\|^mode-line" 1966 (string-match "-hooks?$\\|-functions?$\\|-forms?$\\|-program$\\|-command$\\|-predicate$\\|font-lock-keywords$\\|font-lock-keywords-[0-9]+$\\|font-lock-syntactic-keywords$\\|-frame-alist$\\|-mode-alist$\\|-map$\\|-map-alist$"
1961 (symbol-name var)) 1967 (symbol-name var))
1962 (not (get var 'safe-local-variable)))) 1968 (not (get var 'safe-local-variable))))
1963 ;; Permit evalling a put of a harmless property. 1969 ;; Permit evalling a put of a harmless property.