* lisp/subr.el (remove-hook): Use set-variable-value-history for value history

This commit is contained in:
Juri Linkov 2022-01-12 21:08:16 +02:00
parent c1f9db4758
commit 7b139afbf4

View file

@ -1971,7 +1971,7 @@ one will be removed."
(format "%s hook to remove: "
(if local "Buffer-local" "Global"))
fn-alist
nil t)
nil t nil 'set-variable-value-history)
fn-alist nil nil #'string=)))
(list hook function local)))
(or (boundp hook) (set hook nil))