mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-23 13:27:36 +00:00
(add-hook): Use local local-variable-if-set-p.
This commit is contained in:
parent
f4f04ceee5
commit
cd2db344de
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue