[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct cf99cc1f5c 12/64: Define placeholder predicate for
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct cf99cc1f5c 12/64: Define placeholder predicate for in-region mode |
Date: |
Thu, 30 Dec 2021 23:57:51 -0500 (EST) |
branch: externals/mct
commit cf99cc1f5c1fa35bf1fa9c8532e616e0fe735b6c
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Define placeholder predicate for in-region mode
---
mct.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/mct.el b/mct.el
index df12951050..d0c5fe8e7b 100644
--- a/mct.el
+++ b/mct.el
@@ -304,6 +304,14 @@ Meant to be added to `after-change-functions'."
(buf (window-buffer win)))
(buffer-local-value 'mct--active buf)))
+;; TODO 2021-12-27: If we want to make a buffer-local variant, then we
+;; need to behave like `mct--active-p', because checking for
+;; `completion-in-region-mode' will always fail while in the
+;; Completions' buffer.
+(defun mct--region-p ()
+ "Return non-nil if Mct is completing in region."
+ (bound-and-true-p mct-region-mode))
+
(defun mct--display-completion-list-advice (&rest app)
"Prepare advice around `display-completion-list'.
Apply APP by first let binding the `completions-format' to
- [elpa] externals/mct updated (6279fa3e7d -> 9e81e4425a), ELPA Syncer, 2021/12/30
- [elpa] externals/mct cf99cc1f5c 12/64: Define placeholder predicate for in-region mode,
ELPA Syncer <=
- [elpa] externals/mct 92680c1091 05/64: completion--done: Attempt to teardown completion in region properly, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6cd3b20a83 09/64: Add TODO on binding TAB in region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 555b481fe0 03/64: First steps towards Orderless support, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 5ad44174c8 16/64: Introduce mct-region keymap for completions (WIP), ELPA Syncer, 2021/12/30
- [elpa] externals/mct 788aeafb04 19/64: Rename the minibuffer mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6222731289 10/64: Add new FIXME to exit region completion cleanly, ELPA Syncer, 2021/12/30
- [elpa] externals/mct c79f8c86c9 07/64: Take note of more issues with completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 0d7d64d79a 15/64: Add in-region version of choose-completion, ELPA Syncer, 2021/12/30
- [elpa] externals/mct adeddd2dfe 14/64: Write helper for "choose completion" routine, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 298a83cfc5 17/64: Respin the mct setup for in-region scenario (WIP), ELPA Syncer, 2021/12/30