Mercurial > emacs
changeset 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 | b4731504d3ab |
children | fe458a8ecfa2 |
files | lisp/subr.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)