diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2021-11-01 08:42:26 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2022-01-11 17:05:47 +0100 |
| commit | 4e4774474cfd3594bead5ceca93aeb9401901397 (patch) | |
| tree | d436cad5a170f9feeb9c5cdc4fa8d80cfbcd6e45 /orderless.texi | |
| parent | 1ccf74ffdbb0dd34caa63022e92f947c09c49c86 (diff) | |
Remove strict initialism code by @noctuid
The function `orderless--separated-by` has also been added by @noctuid. However
with the removal of the strict initialism code, the contributions by @noctuid
are pushed below the 15 lines limit. The function `orderless--separated-by` has
only 11 lines.
(cl-defun orderless--separated-by (sep rxs &optional (before "") (after ""))
"Return a regexp to match the rx-regexps RXS with SEP in between.
If BEFORE is specified, add it to the beginning of the rx sequence. If AFTER is
specified, add it to the end of the rx sequence."
(rx-to-string
`(seq
,before
,@(cl-loop for (sexp . more) on rxs
collect `(group ,sexp)
when more collect `,sep)
,after)))
Diffstat (limited to 'orderless.texi')
| -rw-r--r-- | orderless.texi | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/orderless.texi b/orderless.texi index e752f06..edecf97 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. |
