[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless c023ee1cbe 150/204: Add option to skip-highli
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless c023ee1cbe 150/204: Add option to skip-highlighting as requested by @clemera |
Date: |
Tue, 11 Jan 2022 12:58:26 -0500 (EST) |
branch: externals/orderless
commit c023ee1cbe2185ab984981d662ad63ce1c905ddb
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Add option to skip-highlighting as requested by @clemera
---
orderless.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/orderless.el b/orderless.el
index 0548e2c52f..4e6bcd1826 100644
--- a/orderless.el
+++ b/orderless.el
@@ -106,6 +106,13 @@ or a function of a single string argument."
"Vector of faces used (cyclically) for component matches."
:type '(vector face))
+(defcustom orderless-skip-highlighting nil
+ "Skip highlighting the matching parts of candidates?
+If this is set to a function, the function is called to decide
+whether to skip higlighting the matches. Any non-function non-nil
+value means highlighting is skipped."
+ :type '(choice boolean function))
+
(defcustom orderless-matching-styles
'(orderless-regexp orderless-initialism)
"List of component matching styles.
@@ -425,9 +432,15 @@ This function is part of the `orderless' completion style."
(let ((completions (orderless-filter string table pred)))
(when completions
(pcase-let ((`(,prefix . ,pattern)
- (orderless--prefix+pattern string table pred)))
+ (orderless--prefix+pattern string table pred))
+ (skip-highlighting
+ (if (functionp orderless-skip-highlighting)
+ (orderless-skip-highlighting)
+ orderless-skip-highlighting)))
(nconc
- (orderless-highlight-matches pattern completions)
+ (if skip-highlighting
+ completions
+ (orderless-highlight-matches pattern completions))
(length prefix))))))
;;;###autoload
- [elpa] externals/orderless 306fb267f5 100/204: Mark orderless-temporarily-change-separator obsolete (#15), (continued)
- [elpa] externals/orderless 306fb267f5 100/204: Mark orderless-temporarily-change-separator obsolete (#15), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 09f4c74280 105/204: Update dispatchers documentation, add transient vars, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless bc9e48216e 120/204: Add option for "smart case" matching, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1f1e0380e2 122/204: Test for match before highlighting it, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 6b94b9abf8 124/204: Merge pull request #21 from wyuenho/patch-1, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 0826fd4eb4 130/204: Merge pull request #27 from vifon/master, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless fc420e3d07 134/204: Minor readme tweak, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b600f88db0 144/204: Add orderless-define-completion-style macro, a new fix for #31, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 94d52640d4 145/204: Change docstring interface for orderless-define-completion-style, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless da876320b3 146/204: Remove all orderless-transient-* variables (fix #34), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c023ee1cbe 150/204: Add option to skip-highlighting as requested by @clemera,
ELPA Syncer <=
- [elpa] externals/orderless 1ed0c4aabb 153/204: Fix typo, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 0ebc884693 154/204: Update manual to not recommend icomplete anymore, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9d5b95f402 157/204: Merge pull request #40 from minad/master, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 150155ce3c 160/204: Add literal matching to default styles and document (fix #42), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 44935d8962 166/204: Fix bug when all matching styles return nil, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e85084e733 179/204: Merge pull request #58 from minad/add-face-text-property, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3f76b7d1a1 185/204: Delete duplicate regexps (fix #73), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cc15f27107 188/204: orderless-escapable-split-on-space: Fix escaping mistake, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d97a91f6e1 172/204: Merge pull request #51 from minad/disable-initialism, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9c1b276fe4 193/204: Optimize orderless-try-completion, ELPA Syncer, 2022/01/11