aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Desautels2014-06-11 22:18:54 -0400
committerStefan Monnier2014-06-11 22:18:54 -0400
commite016b8f1529872128f756098368c45d2cbb0ae2e (patch)
tree5267dd059fe7f446237caf0c5ef74b920f7a3ef3
parent08cedf2e40738e996c5abe206426780b150f1cd7 (diff)
downloademacs-e016b8f1529872128f756098368c45d2cbb0ae2e.tar.gz
emacs-e016b8f1529872128f756098368c45d2cbb0ae2e.zip
* lisp/help.el (where-is): Use `default' arg of completing-read.
Fixes: debbugs:17705
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/help.el6
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 81b217c506a..d5422deef12 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12014-06-12 Cameron Desautels <camdez@gmail.com> (tiny change)
2
3 * help.el (where-is): Use `default' arg of completing-read (bug#17705).
4
12014-06-12 Kevin Ryde <user42_kevin@yahoo.com.au> 52014-06-12 Kevin Ryde <user42_kevin@yahoo.com.au>
2 6
3 * files.el (auto-mode-alist): Map .ad files to xdefaults-mode 7 * files.el (auto-mode-alist): Map .ad files to xdefaults-mode
diff --git a/lisp/help.el b/lisp/help.el
index 932270204c5..739eac4769d 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -517,8 +517,10 @@ If INSERT (the prefix arg) is non-nil, insert the message in the buffer."
517 (if fn 517 (if fn
518 (format "Where is command (default %s): " fn) 518 (format "Where is command (default %s): " fn)
519 "Where is command: ") 519 "Where is command: ")
520 obarray 'commandp t)) 520 obarray 'commandp t nil nil
521 (list (if (equal val "") fn (intern val)) current-prefix-arg))) 521 (and fn (symbol-name fn))))
522 (list (unless (equal val "") (intern val))
523 current-prefix-arg)))
522 (unless definition (error "No command")) 524 (unless definition (error "No command"))
523 (let ((func (indirect-function definition)) 525 (let ((func (indirect-function definition))
524 (defs nil) 526 (defs nil)