diff options
| author | Dmitry Gutov | 2015-04-25 19:23:41 +0300 |
|---|---|---|
| committer | Dmitry Gutov | 2015-04-26 06:39:34 +0300 |
| commit | fddff05e889b3290222cdfd339af78c074ea1b3e (patch) | |
| tree | a5f5b93979b5500e10b56c450131d65863dfa1da | |
| parent | a0f634a5cd5181af2ba8c03662375b0d2e7bf1bc (diff) | |
| download | emacs-fddff05e889b3290222cdfd339af78c074ea1b3e.tar.gz emacs-fddff05e889b3290222cdfd339af78c074ea1b3e.zip | |
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).
| -rw-r--r-- | lisp/progmodes/xref.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index afcbbf52264..0257210a6c7 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el | |||
| @@ -562,8 +562,8 @@ Return an alist of the form ((FILENAME . (XREF ...)) ...)." | |||
| 562 | (cond ((or current-prefix-arg (not id)) | 562 | (cond ((or current-prefix-arg (not id)) |
| 563 | (completing-read prompt | 563 | (completing-read prompt |
| 564 | (funcall xref-identifier-completion-table-function) | 564 | (funcall xref-identifier-completion-table-function) |
| 565 | nil t id | 565 | nil t nil |
| 566 | 'xref--read-identifier-history)) | 566 | 'xref--read-identifier-history id)) |
| 567 | (t id)))) | 567 | (t id)))) |
| 568 | 568 | ||
| 569 | 569 | ||