Pass id' to completing-read' as def instead of initial input

* 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).
This commit is contained in:
Dmitry Gutov 2015-04-25 19:23:41 +03:00
parent a0f634a5cd
commit fddff05e88

View file

@ -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))))