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

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

[elpa] externals/mct 038ff66a54 06/23: Refine mct-tcm interaction model


From: ELPA Syncer
Subject: [elpa] externals/mct 038ff66a54 06/23: Refine mct-tcm interaction model
Date: Fri, 25 Feb 2022 07:57:37 -0500 (EST)

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

    Refine mct-tcm interaction model
    
    1. Always insert characters at the end of the minibuffer's input.
    2. Make mct-live-completion 'visible' so that if the user had the
       Completions in the window, they will always stay there.
    3. Remove the minimum input threshold and delay between updates.  In
       essence, when the user interacts with mct-tcm, they are making the
       current completion session behave as if it belonged to the
       mct-completion-passlist.
    
    For a discussion, see issue 25: 
<https://gitlab.com/protesilaos/mct/-/issues/25>.
---
 mct-tcm.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mct-tcm.el b/mct-tcm.el
index 9508aac76b..86b71dbcdf 100644
--- a/mct-tcm.el
+++ b/mct-tcm.el
@@ -58,6 +58,10 @@ minibuffer while narrowing to the given input."
                (or (memq 'shift (event-modifiers char))
                    (not (event-modifiers char))))
       (select-window mini)
+      (goto-char (point-max))
+      (setq-local mct-live-completion 'visible)
+      (setq-local mct-live-update-delay 0)
+      (setq-local mct-minimum-input 0)
       (insert char))))
 
 (declare-function mct--minibuffer-p "mct")



reply via email to

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