[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct c72eb363ba 35/64: Add fn to terminate region comple
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct c72eb363ba 35/64: Add fn to terminate region completion (hopefully) |
Date: |
Thu, 30 Dec 2021 23:57:58 -0500 (EST) |
branch: externals/mct
commit c72eb363bae59d2233c8d01f9f5a22d1138117ca
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add fn to terminate region completion (hopefully)
---
mct.el | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/mct.el b/mct.el
index fb4a6ccf1e..1723c48f6b 100644
--- a/mct.el
+++ b/mct.el
@@ -1121,6 +1121,13 @@ region.")
(setq mct--region-buf (and completion-in-region--data
(marker-buffer (nth 0
completion-in-region--data)))))
+(defun mct--region-terminate-completion ()
+ "Terminate completion in region."
+ (when-let ((buf mct--region-buf))
+ (with-current-buffer buf
+ (completion-in-region-mode -1)
+ (keyboard-quit))))
+
(defun mct--region-focus-current-buffer ()
"Focus the buffer where `completion-in-region' is active."
(interactive nil mct-region-mode)
@@ -1183,9 +1190,7 @@ current completion session."
"Bury the Completions and terminate completion in region."
(quit-window nil (mct--get-completion-window))
(mct--region-focus-current-buffer)
- ;; FIXME 2021-12-27: Ensure that we have exited the
- ;; completion-in-region.
- (keyboard-quit))
+ (mct--region-terminate-completion))
(defun mct-next-completion-or-quit (&optional arg)
"Move to next completion or bury the Completions' buffer.
- [elpa] externals/mct 14059afa44 41/64: Make mct-region-mode advice completions window, (continued)
- [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, 2021/12/30
- [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 <=
- [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