[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark c2721bef37 23/30: Simplify code for ensuring emb
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark c2721bef37 23/30: Simplify code for ensuring embark-selected-candidates has priority |
Date: |
Thu, 20 Apr 2023 10:58:22 -0400 (EDT) |
branch: externals/embark
commit c2721bef377cdc7049f89347a418ae1293d959f3
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Simplify code for ensuring embark-selected-candidates has priority
---
embark.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/embark.el b/embark.el
index fd611f4312..f0afdd7584 100644
--- a/embark.el
+++ b/embark.el
@@ -3324,9 +3324,8 @@ Return the category metadatum as the type of the
candidates."
(add-hook 'embark-indicators #'embark--vertico-indicator)
(add-hook 'embark-target-finders #'embark--vertico-selected)
(add-hook 'embark-candidate-collectors #'embark--vertico-candidates)
- (setq embark-candidate-collectors
- (cons #'embark-selected-candidates ; ensure highest priority
- (delq 'embark-selected-candidates embark-candidate-collectors))))
+ (remove-hook 'embark-candidate-collectors #'embark-selected-candidates)
+ (add-hook 'embark-candidate-collectors #'embark-selected-candidates))
;; ivy
@@ -3364,9 +3363,8 @@ Return the category metadatum as the type of the target."
(with-eval-after-load 'ivy
(add-hook 'embark-target-finders #'embark--ivy-selected)
(add-hook 'embark-candidate-collectors #'embark--ivy-candidates)
- (setq embark-candidate-collectors
- (cons 'embark-selected-candidates ; ensure highest priority
- (delq 'embark-selected-candidates embark-candidate-collectors))))
+ (remove-hook 'embark-candidate-collectors #'embark-selected-candidates)
+ (add-hook 'embark-candidate-collectors #'embark-selected-candidates))
;;; Custom actions
- [elpa] externals/embark updated (846b3fd311 -> e7d891a8b2), ELPA Syncer, 2023/04/20
- [elpa] externals/embark 75aa8c25b0 02/30: Don't store bounds, recover from overlay, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 93ab10c48d 07/30: Delay computing :bounds until right before acting, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 99757457f7 11/30: Better key bindings for selecting targets, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 9d08b34d62 03/30: Collect selection in chronological order, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 4ab2f965f4 14/30: Fix old bug with target types in *Completions* buffer, ELPA Syncer, 2023/04/20
- [elpa] externals/embark c2721bef37 23/30: Simplify code for ensuring embark-selected-candidates has priority,
ELPA Syncer <=
- [elpa] externals/embark 866d8efa88 06/30: Visual feedback on selection in Vertico, ELPA Syncer, 2023/04/20
- [elpa] externals/embark a8e56c44e0 05/30: Make sure embark-selected-candidates has highest priority, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 6362c369bf 04/30: Enable multiple selection in Embark Collect buffers, ELPA Syncer, 2023/04/20
- [elpa] externals/embark b7550f84d7 09/30: When deciding if a candidate is selected compare original targets, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 2a5edf3cb8 12/30: Document selection, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 729f944a3b 17/30: Avoid long line, ELPA Syncer, 2023/04/20
- [elpa] externals/embark 868d799753 28/30: Change other binding of whitespace-cleanup-region too, ELPA Syncer, 2023/04/20
- [elpa] externals/embark c9954e94f9 16/30: Revert "Do preemptive refinement of selection targets", ELPA Syncer, 2023/04/20
- [elpa] externals/embark edba98ce5c 22/30: Remove C-. C-u SPC in favor of C-. A SPC, ELPA Syncer, 2023/04/20
- [elpa] externals/embark cce4c3b86e 24/30: Allow candidate collectors to include bounds, ELPA Syncer, 2023/04/20