aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>1995-06-17 19:47:52 +0000
committerRichard M. Stallman <[email protected]>1995-06-17 19:47:52 +0000
commitcd2db344de7834b5de08a38bfbc871dc834b7b69 (patch)
tree4088fe27102d1a1ee73136d0117f2543bf8dc914
parentf4f04ceee5e2776e1b38dca56a9ad9238f572ebe (diff)
(add-hook): Use local local-variable-if-set-p.
-rw-r--r--lisp/subr.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index b84e8ffc89..65a22d1f11 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -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)