# HG changeset patch # User Stefan Monnier # Date 958513017 0 # Node ID d32d8029558cc00ee466a3c7290084b9627f62ad # Parent f100c3d709e429e13ef136fbda21be7065b16c04 (remove-hook): `setq' hook-value, not `set'. diff -r f100c3d709e4 -r d32d8029558c lisp/subr.el --- a/lisp/subr.el Tue May 16 20:51:59 2000 +0000 +++ b/lisp/subr.el Tue May 16 21:36:57 2000 +0000 @@ -735,7 +735,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 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