[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct d3dbb61e89 56/64: Merge 'main' into experiment-comp
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct d3dbb61e89 56/64: Merge 'main' into experiment-completion-in-region |
Date: |
Thu, 30 Dec 2021 23:58:01 -0500 (EST) |
branch: externals/mct
commit d3dbb61e8915645b1072268f3b2aca3e5e418f6e
Merge: 8d02ae3a6c 6279fa3e7d
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Merge 'main' into experiment-completion-in-region
---
README.org | 6 +++---
mct.el | 28 +++++++++++++---------------
2 files changed, 16 insertions(+), 18 deletions(-)
diff --git a/README.org b/README.org
index 5c8ef67e56..fdd4c91b6c 100644
--- a/README.org
+++ b/README.org
@@ -774,9 +774,9 @@ MCT is meant to be a collective effort. Every bit of help
matters.
Vladimir Cash, José Antonio Ortega Ruiz, Juri Linkov, Philip
Kaludercic.
-+ Ideas and user feedback :: Benjamin (@zealotrush), Case Duckworth,
- Jonathan Irving, José Antonio Ortega Ruiz, Kostadin Ninev, Manuel
- Uberti, Philip Kaludercic, Theodor Thornhill.
++ Ideas and user feedback :: Andrew Tropin, Benjamin (@zealotrush), Case
+ Duckworth, Jonathan Irving, José Antonio Ortega Ruiz, Kostadin Ninev,
+ Manuel Uberti, Philip Kaludercic, Theodor Thornhill.
+ Inspiration for certain features :: =icomplete.el= (built-in---multiple
authors), Daniel Mendler (=vertico=), Omar Antolín Camarena (=embark=,
diff --git a/mct.el b/mct.el
index 3c679710a5..81d9b7e06f 100644
--- a/mct.el
+++ b/mct.el
@@ -698,25 +698,21 @@ If ARG is supplied, move that many completion groups at a
time."
;;;;; Candidate selection
-;; TODO review, is this not almost the same as choose-completion?
+;; The difference between this and choose-completion is that it will
+;; exit even if a directory is selected in find-file, whereas
+;; choose-completion expands the directory and continues the session.
(defun mct-choose-completion-exit ()
"Run `choose-completion' in the Completions buffer and exit."
(interactive nil mct-minibuffer-mode)
+ (choose-completion)
(when (active-minibuffer-window)
- (when-let* ((window (mct--get-completion-window))
- (buffer (window-buffer)))
- ;; TODO review, are we not always in the *Completions* buffer here?
- (with-current-buffer buffer
- (choose-completion)))
(minibuffer-force-complete-and-exit)))
(defun mct-choose-completion-no-exit ()
"Run `choose-completion' in the Completions without exiting."
(interactive nil mct-minibuffer-mode)
- (when-let ((mini (active-minibuffer-window)))
- (let ((completion-no-auto-exit t))
- (choose-completion))
- (select-window mini nil)))
+ (let ((completion-no-auto-exit t))
+ (choose-completion)))
(defvar display-line-numbers-mode)
@@ -834,11 +830,13 @@ last character."
(interactive nil mct-minibuffer-mode)
(when-let ((window (mct--get-completion-window))
((active-minibuffer-window)))
- (with-selected-window window
- (when-let* ((old-point (window-old-point window))
- (pos (if (= old-point (point-min))
- (mct--first-completion-point)
- old-point)))
+ (with-current-buffer (window-buffer window)
+ (let* ((old-point (save-excursion
+ (select-window window)
+ (window-old-point)))
+ (pos (if (= old-point (point-min))
+ (mct--first-completion-point)
+ old-point)))
(goto-char pos)
(mct-choose-completion-no-exit)))))
- [elpa] externals/mct 523f84e9ee 39/64: Remove note on mct-region-mode---it works (?) now, (continued)
- [elpa] externals/mct 523f84e9ee 39/64: Remove note on mct-region-mode---it works (?) now, ELPA Syncer, 2021/12/30
- [elpa] externals/mct bb44658a8b 43/64: Inhibit messages directly in mct--show-completions, ELPA Syncer, 2021/12/30
- [elpa] externals/mct f2d2fb0ec7 42/64: Fixes and TODOS, ELPA Syncer, 2021/12/30
- [elpa] externals/mct e617bfd0aa 45/64: Remove mct--quit-completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct f1b1a5c76e 46/64: Remove mct-choose-completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 7974ae0450 40/64: Remove needless call to fit completions to window, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 14059afa44 41/64: Make mct-region-mode advice completions window, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 13839537f2 29/64: Remove outdated comment, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 5c8fbb1784 51/64: Simplify mct-choose-completion-no-exit, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 8d02ae3a6c 55/64: Tweak the mct-region-completion-list-mode-map, ELPA Syncer, 2021/12/30
- [elpa] externals/mct d3dbb61e89 56/64: Merge 'main' into experiment-completion-in-region,
ELPA Syncer <=
- [elpa] externals/mct 93de87bb9f 57/64: Setup the region buffer map, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 98d5cc7095 62/64: Remove debug function for completion in region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 9c68da912b 52/64: Simplify mct--setup-clean-completions, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 3f90353233 53/64: Make mct--setup-clean-completions more robust, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 2bb0e25549 63/64: Placate the ever-pedantic compiler, ELPA Syncer, 2021/12/30
- [elpa] externals/mct c72eb363ba 35/64: Add fn to terminate region completion (hopefully), ELPA Syncer, 2021/12/30
- [elpa] externals/mct fd33ea240e 38/64: Reinstate orderless support (needs a defcustom), ELPA Syncer, 2021/12/30
- [elpa] externals/mct 90d07f5d3e 47/64: Remove mct--completions-choose-completion, ELPA Syncer, 2021/12/30
- [elpa] externals/mct b79b383d1f 60/64: Fix a6dac17, ELPA Syncer, 2021/12/30