diff lisp/subr.el @ 12296:005a5b596618

(add-hook): Use local local-variable-if-set-p.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Jun 1995 19:47:52 +0000
parents 95ebca0a74d8
children 71727759437e
line wrap: on
line diff
--- a/lisp/subr.el	Sat Jun 17 19:47:30 1995 +0000
+++ b/lisp/subr.el	Sat Jun 17 19:47:52 1995 +0000
@@ -612,7 +612,7 @@
   (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)