emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master fddff05: Pass `id' to `completing-read' as def inst


From: Dmitry Gutov
Subject: [Emacs-diffs] master fddff05: Pass `id' to `completing-read' as def instead of initial input
Date: Sun, 26 Apr 2015 03:40:00 +0000

branch: master
commit fddff05e889b3290222cdfd339af78c074ea1b3e
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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).
---
 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 afcbbf5..0257210 100644
--- 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))))
 
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]