From: Richard M. Stallman Date: Sat, 17 Jun 1995 19:47:52 +0000 (+0000) Subject: (add-hook): Use local local-variable-if-set-p. X-Git-Tag: emacs-19.34~3563 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cd2db344de7834b5de08a38bfbc871dc834b7b69;p=emacs.git (add-hook): Use local local-variable-if-set-p. --- diff --git a/lisp/subr.el b/lisp/subr.el index b84e8ffc89b..65a22d1f116 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)