* lisp/subr.el (remove-hook): Add default value (bug#45393)
This commit is contained in:
parent
7469214d94
commit
3b835f7b81
1 changed files with 5 additions and 1 deletions
|
@ -1800,7 +1800,11 @@ unless HOOK has both local and global functions). If multiple
|
|||
functions have the same representation under `princ', the first
|
||||
one will be removed."
|
||||
(interactive
|
||||
(let* ((hook (intern (completing-read "Hook variable: " obarray #'boundp t)))
|
||||
(let* ((default (and (symbolp (variable-at-point))
|
||||
(symbol-name (variable-at-point))))
|
||||
(hook (intern (completing-read
|
||||
(format-prompt "Hook variable" default)
|
||||
obarray #'boundp t nil nil default)))
|
||||
(local
|
||||
(and
|
||||
(local-variable-p hook)
|
||||
|
|
Loading…
Add table
Reference in a new issue