Commit fea504fb authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(hack-one-local-variable): Treat file-name-handler-alist

kand after-load-alist like eval.
parent 7fd233b3
......@@ -1052,7 +1052,7 @@ If `enable-local-variables' is nil, this function does not check for a
nil)
;; "Setting" eval means either eval it or do nothing.
;; Likewise for setting hook variables.
((or (eq var 'eval)
((or (memq var '(eval file-name-handler-alist after-load-alist))
(string-match "-hooks?$\\|-functions?$" (symbol-name var)))
(if (and (not (string= (user-login-name) "root"))
(or (eq enable-local-eval t)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment