projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f634a
)
Pass `id' to `completing-read' as def instead of initial input
author
Dmitry Gutov
<dgutov@yandex.ru>
Sat, 25 Apr 2015 16:23:41 +0000
(19:23 +0300)
committer
Dmitry Gutov
<dgutov@yandex.ru>
Sun, 26 Apr 2015 03:39:34 +0000
(06:39 +0300)
* xref.el (xref--read-identifier): Pass `id' to `completing-read'
as the default value instead of initial input
(http://lists.gnu.org/archive/html/emacs-devel/2015-04/msg01182.html).
lisp/progmodes/xref.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/xref.el
b/lisp/progmodes/xref.el
index afcbbf52264eb5f4e04e7bda7891d84268915c25..0257210a6c74a5496988688e99d5c4f41c564bd0 100644
(file)
--- a/
lisp/progmodes/xref.el
+++ b/
lisp/progmodes/xref.el
@@
-562,8
+562,8
@@
Return an alist of the form ((FILENAME . (XREF ...)) ...)."
(cond ((or current-prefix-arg (not id))
(completing-read prompt
(funcall xref-identifier-completion-table-function)
- nil t
id
- 'xref--read-identifier-history))
+ nil t
nil
+ 'xref--read-identifier-history
id
))
(t id))))
\f