diff options
| -rw-r--r-- | lisp/files.el | 8 |
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. |