[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless f22789f358 202/204: Merge pull request #94 fr
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless f22789f358 202/204: Merge pull request #94 from minad/strict-initialism |
Date: |
Tue, 11 Jan 2022 12:58:31 -0500 (EST) |
branch: externals/orderless
commit f22789f358ad6a4f7f18ae9b29c0cb3558a92871
Merge: 1ccf74ffdb 4e4774474c
Author: Omar AntolĂn Camarena <omar.antolin@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #94 from minad/strict-initialism
Remove strict initialism code by @noctuid
---
README.org | 16 ----------------
orderless.el | 42 ------------------------------------------
orderless.texi | 19 -------------------
3 files changed, 77 deletions(-)
diff --git a/README.org b/README.org
index 25794864b6..c756beb033 100644
--- a/README.org
+++ b/README.org
@@ -144,22 +144,6 @@ define new matching styles. The predefined ones are:
This maps =abc= to =\<a.*\<b.*\c=.
-- orderless-strict-initialism :: like initialism but only allow
- non-letters in between the matched words.
-
- For example =fb= would match =foo-bar= but not =foo-qux-bar=.
-
-- orderless-strict-leading-initialism :: like strict-initialism but
- require the first initial to match the candidate's first word.
-
- For example =bb= would match =bar-baz= but not =foo-bar-baz=.
-
-- orderless-strict-full-initialism :: like strict-initialism but
- require the first initial to match the candidate's first word and the
- last initial to be at the final word.
-
- For example =fbb= would match =foo-bar-baz= but not =foo-bar-baz-qux=.
-
- orderless-flex :: the characters of the component should appear in
that order in the candidate, but not necessarily consecutively.
diff --git a/orderless.el b/orderless.el
index 0719935dd9..7e97e226f1 100644
--- a/orderless.el
+++ b/orderless.el
@@ -128,9 +128,6 @@ a list of them."
:options '(orderless-regexp
orderless-literal
orderless-initialism
- orderless-strict-initialism
- orderless-strict-leading-initialism
- orderless-strict-full-initialism
orderless-prefixes
orderless-flex))
@@ -208,45 +205,6 @@ 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 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 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 alpha) word-end (zero-or-more (not alpha)))
- (cl-loop for char across component collect `(seq word-start ,char))
- (when anchored '(seq (group buffer-start) (zero-or-more (not alpha))))
- (when (eq anchored 'both)
- '(seq (zero-or-more alpha) word-end (zero-or-more (not alpha)) eol))))
-
-(defun orderless-strict-initialism (component)
- "Match a COMPONENT as a strict initialism.
-This means 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."
- (orderless--strict-*-initialism component))
-
-(defun orderless-strict-leading-initialism (component)
- "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 '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 'both))
-
(defun orderless-prefixes (component)
"Match a component as multiple word prefixes.
The COMPONENT is split at word endings, and each piece must match
diff --git a/orderless.texi b/orderless.texi
index e752f06e5f..edecf97912 100644
--- a/orderless.texi
+++ b/orderless.texi
@@ -181,25 +181,6 @@ as the beginning of a word in the candidate, in order.
This maps @samp{abc} to @samp{\<a.*\<b.*\c}.
-@item orderless-strict-initialism
-like initialism but only allow
-non-letters in between the matched words.
-
-For example @samp{fb} would match @samp{foo-bar} but not @samp{foo-qux-bar}.
-
-@item orderless-strict-leading-initialism
-like strict-initialism but
-require the first initial to match the candidate's first word.
-
-For example @samp{bb} would match @samp{bar-baz} but not @samp{foo-bar-baz}.
-
-@item orderless-strict-full-initialism
-like strict-initialism but
-require the first initial to match the candidate's first word and the
-last initial to be at the final word.
-
-For example @samp{fbb} would match @samp{foo-bar-baz} but not
@samp{foo-bar-baz-qux}.
-
@item orderless-flex
the characters of the component should appear in
that order in the candidate, but not necessarily consecutively.
- [elpa] externals/orderless a609004d5f 159/204: Document that orderless-regexp matches invalid regexps literally, (continued)
- [elpa] externals/orderless a609004d5f 159/204: Document that orderless-regexp matches invalid regexps literally, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d6eb575714 165/204: Merge pull request #44 from minad/invalid-regexp, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 87ab7e47e3 168/204: Merge pull request #46 from minad/remove-pattern-compiler-variable, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d2891b807b 174/204: orderless+initialism example requires Marginalia (see #54), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e4c38efcd6 176/204: README: Add variable category to orderless+initialism sample, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 871eb1d0f0 178/204: Use add-face-text-property, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless df4f29a4f4 183/204: Use minibuffer customization group, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 62f71c34ba 191/204: Extend prefix optimization to anchored quoted regexps (fix #81), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 75d3398056 192/204: Have orderless-try-completion return t for exact match (fix #95), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c8731aacfa 197/204: Merge pull request #98 from minad/fix-try, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f22789f358 202/204: Merge pull request #94 from minad/strict-initialism,
ELPA Syncer <=
- [elpa] externals/orderless 855255eb01 198/204: Mention Corfu and consult-completion-in-region (fix #99), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 269d7388ab 034/204: Merge pull request #6 from raxod502/patch-1, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ae466bc4f4 054/204: Rename orderless-regexp-separator to orderless-component-separator, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless aad0aa8a8d 017/204: Copy candidates to avoid permanently changing their face, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9218343171 043/204: Add command to temporarily change separator, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2750e15c74 065/204: Add ivy integration, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless fb6ad592b7 067/204: List more helpful functions for integration, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 50c83f2752 074/204: Avoid using cl-lib in autoloads, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 274c8cbadc 078/204: Declare other ivy variable used, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b63019aea3 090/204: Add missing (oops!) "forgiving funcall" function, ELPA Syncer, 2022/01/11