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

This commit is contained in:
Richard M. Stallman 1995-06-17 19:47:52 +00:00
parent f4f04ceee5
commit cd2db344de

View file

@ -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)