summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.org5
-rw-r--r--orderless.texi6
2 files changed, 9 insertions, 2 deletions
diff --git a/README.org b/README.org
index f4d5395..a0ad2f1 100644
--- a/README.org
+++ b/README.org
@@ -133,6 +133,9 @@ matching styles are:
- orderless-literal :: the component is treated as a literal string
that must occur in the candidate.
+- orderless-prefix :: the component is treated as a literal string
+ that must occur as a prefix of a candidate.
+
- orderless-prefixes :: the component is split at word endings and
each piece must match at a word boundary in the candidate, occurring
in that order.
@@ -241,7 +244,7 @@ Style modifiers should not be used directly in
(defun not-if-bang (pattern _index _total)
(cond
((equal "!" pattern)
- '(orderless-literal . ""))
+ #'ignore)
((string-prefix-p "!" pattern)
`(orderless-not . ,(substring pattern 1)))))
diff --git a/orderless.texi b/orderless.texi
index 7602947..9e8c7d4 100644
--- a/orderless.texi
+++ b/orderless.texi
@@ -169,6 +169,10 @@ If the component is not a valid regexp, it is ignored.
the component is treated as a literal string
that must occur in the candidate.
+@item orderless-prefix
+the component is treated as a literal string
+that must occur as a prefix of a candidate.
+
@item orderless-prefixes
the component is split at word endings and
each piece must match at a word boundary in the candidate, occurring
@@ -307,7 +311,7 @@ You can achieve this with the following configuration:
(defun not-if-bang (pattern _index _total)
(cond
((equal "!" pattern)
- '(orderless-literal . ""))
+ #'ignore)
((string-prefix-p "!" pattern)
`(orderless-not . ,(substring pattern 1)))))