Commit dc417415 authored by Richard M. Stallman's avatar Richard M. Stallman

(hack-one-local-variable): Check properly for `defun.

parent e6a4af1d
......@@ -1136,7 +1136,7 @@ If `enable-local-variables' is nil, this function does not check for a
;; Only allow safe values of lisp-indent-hook;
;; not functions.
(or (numberp (nth 3 val))
(eq (nth 3 val) 'defun))
(equal (nth 3 val) ''defun))
(memq (nth 1 (nth 2 val))
'(lisp-indent-hook)))
;; Permit eval if not root and user says ok.
......
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