emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/mct ccce90d 08/70: Make line number selection always ex


From: ELPA Syncer
Subject: [elpa] externals/mct ccce90d 08/70: Make line number selection always exit minibuffer
Date: Thu, 11 Nov 2021 03:57:41 -0500 (EST)

branch: externals/mct
commit ccce90db876256cf04216f2f9e8637c79ddafa84
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Make line number selection always exit minibuffer
    
    This avoids problems with dynamic completion, such as when inserting a
    directory in find-file.  We want to select it and exit, not continue
    typing.  Otherwise mct--line-completion will need to be refactored to
    account for dynamic completion (how?) and for completing-read-multiple.
---
 mct.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mct.el b/mct.el
index 9112987..e457057 100644
--- a/mct.el
+++ b/mct.el
@@ -452,7 +452,7 @@ minibuffer."
   (with-current-buffer (window-buffer (mct--get-completion-window))
     (goto-char (point-min))
     (forward-line (1- n))
-    (choose-completion)))
+    (mct-choose-completion-exit)))
 
 (defun mct--line-bounds (n)
   "Test if Nth line is in the buffer."



reply via email to

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