[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 4f0088b2a2 19/21: Make the blocklist take precedenc
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 4f0088b2a2 19/21: Make the blocklist take precedence over the passlist |
Date: |
Sat, 25 Mar 2023 15:59:02 -0400 (EDT) |
branch: externals/mct
commit 4f0088b2a2a9775c03bac9226a81d718529896cc
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Make the blocklist take precedence over the passlist
---
README.org | 6 ++++++
mct.el | 10 ++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/README.org b/README.org
index 17fc15f7d7..7b92c4f1d7 100644
--- a/README.org
+++ b/README.org
@@ -234,6 +234,9 @@ the ~mct-minimum-input~. It also bypasses any possible
delay introduced
by ~mct-live-update-delay~. In other words, it immediately displays the
=*Completions*= buffer and instantly updates it to match user input.
+When the ~mct-completion-blocklist~ and the ~mct-completion-passlist~
+are in conflict, the former takes precedence.
+
[[#h:1f42c4e6-53c1-4e8a-81ef-deab70822fa4][Known completion categories]].
*** Blocklist for commands or completion categories
@@ -258,6 +261,9 @@ The Completions' buffer can still be accessed with commands
that place
it in a window (such as ~mct-list-completions-toggle~,
~mct-switch-to-completions-top~).
+When the ~mct-completion-blocklist~ and the ~mct-completion-passlist~
+are in conflict, the former takes precedence.
+
Perhaps a less drastic measure is to set ~mct-minimum-input~ to an
appropriate value. Or better use ~mct-completion-passlist~.
diff --git a/mct.el b/mct.el
index e6687443d5..0ef5cbc1dc 100644
--- a/mct.el
+++ b/mct.el
@@ -166,6 +166,9 @@ The Completions buffer can still be accessed with commands
that
place it in a window (such as `mct-list-completions-toggle',
`mct-switch-to-completions-top').
+When the `mct-completion-blocklist' and the `mct-completion-passlist'
+are in conflict, the former takes precedence.
+
Perhaps a less drastic measure is to set `mct-minimum-input' to
an appropriate value. Or better use `mct-completion-passlist'.
@@ -185,6 +188,9 @@ This means that they ignore the value of
`mct-live-completion'
and the `mct-minimum-input'. They also bypass any possible delay
introduced by `mct-live-update-delay'.
+When the `mct-completion-blocklist' and the `mct-completion-passlist'
+are in conflict, the former takes precedence.
+
Read the manual for known completion categories."
:type '(repeat symbol)
:group 'mct)
@@ -390,7 +396,7 @@ Meant to be added to `after-change-functions'."
(defun mct--setup-live-completions ()
"Set up the Completions buffer."
(cond
- ((null mct-live-completion))
+ ((or (null mct-live-completion) (mct--blocklist-p)))
;; ;; NOTE 2022-02-25: The passlist setup we had here was being
;; ;; called too early in `mct--completing-read-advice'. It would
;; ;; fail to filter out the current candidate from the list
@@ -410,7 +416,7 @@ Meant to be added to `after-change-functions'."
(defun mct--setup-passlist ()
"Set up the minibuffer for `mct-completion-passlist'."
- (when (and (mct--passlist-p) (mct--minibuffer-p))
+ (when (and (mct--passlist-p) (mct--minibuffer-p) (not (mct--blocklist-p)))
(setq-local mct-minimum-input 0)
(setq-local mct-live-update-delay 0)
(mct--show-completions)))
- [elpa] externals/mct fbd2bf7183 09/21: DEPRECATE mct-display-buffer-action, (continued)
- [elpa] externals/mct fbd2bf7183 09/21: DEPRECATE mct-display-buffer-action, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 443e2bd76b 06/21: DEPRECATE mct-apply-completion-stripes, ELPA Syncer, 2023/03/25
- [elpa] externals/mct b95aa0f8e5 01/21: Development restarts; remove old notices, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 33df7c9b43 13/21: Use line-{beginning, end}-position where relevant, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 96a486eff4 17/21: Remove reference to Emacs 27; 28 is the minimum, ELPA Syncer, 2023/03/25
- [elpa] externals/mct f52ee53d39 20/21: DELETE mct-region-mode; remove remaining extras, ELPA Syncer, 2023/03/25
- [elpa] externals/mct ea1edfff5e 21/21: Merge branch 'restart-development', ELPA Syncer, 2023/03/25
- [elpa] externals/mct 00a8dccf82 08/21: Fix mct-live-completion :type for one option, ELPA Syncer, 2023/03/25
- [elpa] externals/mct c342943ae8 14/21: Add README.md to make it easier for all Git forges, ELPA Syncer, 2023/03/25
- [elpa] externals/mct d90dd8372f 18/21: Update package information, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 4f0088b2a2 19/21: Make the blocklist take precedence over the passlist,
ELPA Syncer <=
- [elpa] externals/mct 06e974a23a 07/21: Remove documentation about deleted extensions, ELPA Syncer, 2023/03/25
- [elpa] externals/mct ec12cafaa3 15/21: Simplify the front matter in the README.org, ELPA Syncer, 2023/03/25
- [elpa] externals/mct d2391f88ed 03/21: Change minimum Emacs version to 28, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 76d3ee9f0a 10/21: DEPRECATE mct-completions-format, ELPA Syncer, 2023/03/25
- [elpa] externals/mct f877e22324 12/21: Do not extend mct-highlight-candidate, ELPA Syncer, 2023/03/25
- [elpa] externals/mct a4f67da780 05/21: Rewrite some doc strings for stylistic consistency, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 9c469d5cce 11/21: Delete old deprecation code, ELPA Syncer, 2023/03/25
- [elpa] externals/mct 7af3e101be 16/21: Add missing block about package sources, ELPA Syncer, 2023/03/25
- [elpa] externals/mct f3c662c52f 04/21: Rename helper function for 1/3 frame height, ELPA Syncer, 2023/03/25