+2000-05-16 Stefan Monnier <monnier@cs.yale.edu>
+
+ * subr.el (remove-hook): `setq' hook-value, not `set'.
+
2000-05-16 Sam Steingold <sds@gnu.org>
* info.el (debug-ignored-errors): more errors to ignore.
(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 removal if necessary
(setq hook-value (delete function (copy-sequence hook-value)))
;; If the function is on the global hook, we need to shadow it locally