mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-25 10:47:00 +00:00
(where-is): Fail gracefully when not passed a command.
This commit is contained in:
parent
8193fc4ba8
commit
463d75acd9
@ -491,6 +491,7 @@ If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
|
||||
"Where is command: ")
|
||||
obarray 'commandp t))
|
||||
(list (if (equal val "") fn (intern val)) current-prefix-arg)))
|
||||
(unless definition (error "No command"))
|
||||
(let ((func (indirect-function definition))
|
||||
(defs nil)
|
||||
(standard-output (if insert (current-buffer) t)))
|
||||
|
Loading…
Reference in New Issue
Block a user