mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-11 09:20:51 +00:00
* lisp/help.el (where-is): Use `default' arg of completing-read.
Fixes: debbugs:17705
This commit is contained in:
parent
08cedf2e40
commit
e016b8f152
@ -1,3 +1,7 @@
|
||||
2014-06-12 Cameron Desautels <camdez@gmail.com> (tiny change)
|
||||
|
||||
* help.el (where-is): Use `default' arg of completing-read (bug#17705).
|
||||
|
||||
2014-06-12 Kevin Ryde <user42_kevin@yahoo.com.au>
|
||||
|
||||
* files.el (auto-mode-alist): Map .ad files to xdefaults-mode
|
||||
|
@ -517,8 +517,10 @@ If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
|
||||
(if fn
|
||||
(format "Where is command (default %s): " fn)
|
||||
"Where is command: ")
|
||||
obarray 'commandp t))
|
||||
(list (if (equal val "") fn (intern val)) current-prefix-arg)))
|
||||
obarray 'commandp t nil nil
|
||||
(and fn (symbol-name fn))))
|
||||
(list (unless (equal val "") (intern val))
|
||||
current-prefix-arg)))
|
||||
(unless definition (error "No command"))
|
||||
(let ((func (indirect-function definition))
|
||||
(defs nil)
|
||||
|
Loading…
Reference in New Issue
Block a user