# HG changeset patch # User Sam Steingold # Date 958488466 0 # Node ID 2a91228f7aa35e6488e66fc1628c79ca16551fa7 # Parent c5964d5c6afadf171f28dd3dead6df13e93a17d3 (add-hook): setq hook-value, not set diff -r c5964d5c6afa -r 2a91228f7aa3 lisp/ChangeLog --- a/lisp/ChangeLog Tue May 16 14:37:08 2000 +0000 +++ b/lisp/ChangeLog Tue May 16 14:47:46 2000 +0000 @@ -1,3 +1,7 @@ +2000-05-16 Sam Steingold + + * subr.el (add-hook): `setq' hook-value, not `set'. + 2000-05-16 Gerd Moellmann * startup.el (command-line-1): Mention the FAQ in the startup diff -r c5964d5c6afa -r 2a91228f7aa3 lisp/subr.el --- a/lisp/subr.el Tue May 16 14:37:08 2000 +0000 +++ b/lisp/subr.el Tue May 16 14:47:46 2000 +0000 @@ -704,7 +704,7 @@ (let ((hook-value (if local (symbol-value hook) (default-value hook)))) ;; If the hook value is a single function, turn it into a list. (when (or (not (listp hook-value)) (eq (car hook-value) 'lambda)) - (set hook-value (list hook-value))) + (setq hook-value (list hook-value))) ;; Do the actual addition if necessary (unless (member function hook-value) (setq hook-value