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

(add-hook): Use local local-variable-if-set-p.

parent f4f04cee
......@@ -612,7 +612,7 @@ function, it is changed to a list of functions."
(if (or local
;; Detect the case where make-local-variable was used on a hook
;; and do what we used to do.
(and (local-variable-p hook)
(and (local-variable-if-set-p hook)
(not (memq t (symbol-value hook)))))
;; Alter the local value only.
(or (if (consp function)
......
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