[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless ed37c22902 097/204: Prefer descriptive argume
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless ed37c22902 097/204: Prefer descriptive argument over "mystery t's" |
Date: |
Tue, 11 Jan 2022 12:58:21 -0500 (EST) |
branch: externals/orderless
commit ed37c229023a25c89bf2a55f62c308a26278d16c
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Prefer descriptive argument over "mystery t's"
---
orderless.el | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/orderless.el b/orderless.el
index 31b4890ad0..1297b6cf48 100644
--- a/orderless.el
+++ b/orderless.el
@@ -166,21 +166,22 @@ candidate, in that order, at the beginning of words."
(orderless--separated-by '(zero-or-more nonl)
(cl-loop for char across component collect `(seq word-start ,char))))
-(defun orderless--strict-*-initialism (component &optional start end)
- "Match a COMPONENT as a strict initialism, optionally anchored.
+(defun orderless--strict-*-initialism (component &optional anchored)
+ "Match a COMPONENT as a strict initialism, optionally ANCHORED.
The characters in COMPONENT must occur in the candidate in that
order at the beginning of subsequent words comprised of letters.
Only non-letters can be in between the words that start with the
initials.
-If START is non-nil, require that the first initial appear at the
-first word of the candidate. Similarly, if END is non-nil
-require the last initial appear in the last word."
+If ANCHORED is `start' require that the first initial appear in
+the first word of the candidate. If ANCHORED is `both' require
+that the first and last initials appear in the first and last
+words of the candidate, respectively."
(orderless--separated-by
'(seq (zero-or-more word) word-end (zero-or-more (not alpha)))
(cl-loop for char across component collect `(seq word-start ,char))
- (when start '(seq buffer-start (zero-or-more (not alpha))))
- (when end
+ (when anchored '(seq buffer-start (zero-or-more (not alpha))))
+ (when (eq anchored 'both)
'(seq (zero-or-more word) word-end (zero-or-more (not alpha)) eol))))
(defun orderless-strict-initialism (component)
@@ -195,14 +196,14 @@ words that start with the initials."
"Match a COMPONENT as a strict initialism, anchored at start.
See `orderless-strict-initialism'. Additionally require that the
first initial appear in the first word of the candidate."
- (orderless--strict-*-initialism component t))
+ (orderless--strict-*-initialism component 'start))
(defun orderless-strict-full-initialism (component)
"Match a COMPONENT as a strict initialism, anchored at both ends.
See `orderless-strict-initialism'. Additionally require that the
first and last initials appear in the first and last words of the
candidate, respectively."
- (orderless--strict-*-initialism component t t))
+ (orderless--strict-*-initialism component 'both))
(defun orderless-prefixes (component)
"Match a component as multiple word prefixes.
- [elpa] externals/orderless 6ada0ad21c 035/204: Add docstrings to functions, (continued)
- [elpa] externals/orderless 6ada0ad21c 035/204: Add docstrings to functions, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless a371c26c69 003/204: Stronger wording for warning, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d576dc9fac 028/204: Add reminder that match faces only are used if orderless "wins", ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 6aabc83f02 022/204: Remove warning and stuff about SPC, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1ad6bd254b 021/204: Only copy and highlight once the candidate is known to match, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f2af44bf2e 057/204: Mention Icicles's progressive matching, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1631eb1733 073/204: Fix autoload for ivy, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 862eed345c 075/204: Add more orderless initialism styles, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e3644defcd 088/204: Add orderless-pattern-compiler variable for maximum flexibility, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 436ef98b16 089/204: Add optional argument for dispatches: total number of components, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ed37c22902 097/204: Prefer descriptive argument over "mystery t's",
ELPA Syncer <=
- [elpa] externals/orderless 9cebf2fc8c 106/204: Escape parenthesis in first column of docstrings, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 93f4bccea1 112/204: Go back to split-string until empty components issue is resolved, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2d1f68b914 114/204: Fix tiny bug in customization type, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 5c2f44d901 115/204: Allow component separator to be a function, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 43896f3e10 140/204: Accidentally omitted the overview! Bring it back, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b059c15911 052/204: Make orderless-prefixes more like partial-completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless dc3f8da022 076/204: Avoid other cl-pushnes in an autoload, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless a11302737e 018/204: Keep split-string from modifying global match data, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c9ae65ea16 023/204: Highlight component matches in one of four faces, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 044fac0859 029/204: Revert "Better match face defaults (kindly contributed by Protesilaos)", ELPA Syncer, 2022/01/11