[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless bf91e1d8a2 095/204: Name sections of code
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless bf91e1d8a2 095/204: Name sections of code |
Date: |
Tue, 11 Jan 2022 12:58:20 -0500 (EST) |
branch: externals/orderless
commit bf91e1d8a2214febbdaf3b539669aadcd6c30575
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Name sections of code
---
orderless.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/orderless.el b/orderless.el
index 504b422dfd..2223632a17 100644
--- a/orderless.el
+++ b/orderless.el
@@ -190,6 +190,8 @@ This is simply the identity function.")
"Match a component as a literal string.
This is simply `regexp-quote'.")
+;;; Matching styles
+
(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
@@ -264,6 +266,8 @@ at a word boundary in the candidate. This is similar to the
(cl-loop for prefix in (split-string component "\\>" t)
collect `(seq word-boundary ,prefix))))
+;;; Highlighting matches
+
(defun orderless--highlight (regexps string)
"Propertize STRING to highlight a match of each of the REGEXPS.
Warning: only use this if you know all REGEXPs match!"
@@ -291,6 +295,8 @@ converted to a list of regexps according to the value of
for string = (copy-sequence original)
collect (orderless--highlight regexps string)))
+;;; Compiling patterns to lists of regexps
+
(defun orderless-default-pattern-compiler (pattern)
"Build regexps to match the components of PATTERN.
Split PATTERN on `orderless-component-separator' and consult
@@ -322,6 +328,8 @@ This is the default value of `orderless-pattern-compiler'."
,@(cl-loop for style in styles
collect `(regexp ,(funcall style component)))))))))
+;;; Completion style implementation
+
(defun orderless--prefix+pattern (string table pred)
"Split STRING into prefix and pattern according to TABLE.
The predicate PRED is used to constrain the entries in TABLE."
@@ -380,6 +388,8 @@ This function is part of the `orderless' completion style."
orderless-try-completion orderless-all-completions
"Completion of multiple components, in any order."))
+;;; Temporary separator change (does anyone use this?)
+
(defvar orderless-old-component-separator nil
"Stores the old value of `orderless-component-separator'.")
@@ -400,7 +410,7 @@ This function is part of the `orderless' completion style."
(setq orderless-component-separator separator)
(add-to-list 'minibuffer-exit-hook #'orderless--restore-component-separator))
-;;; ivy integration
+;;; Ivy integration
(defvar ivy-regex)
(defvar ivy-highlight-functions-alist)
- [elpa] externals/orderless 3827b4119c 056/204: Add screenshot, (continued)
- [elpa] externals/orderless 3827b4119c 056/204: Add screenshot, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c75f5d15dd 063/204: Add autoloads for orderless-filter and orderless-highlight-matches, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless fc441ecdf0 066/204: Update README TOC, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 123d2fa19c 064/204: Document selectrum integration, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f4fa6a9d56 069/204: Add declaration of ivy-regex, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1a4bf2e237 071/204: Merge remote-tracking branch 'github/master', ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 278af2d607 068/204: Mention Ivy support in overview, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 46e4ecdba5 072/204: Improve ivy integration, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless f25e2dcc02 081/204: Merge pull request #13 from clemera/patch-1, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b69b52289f 084/204: Add Company to TOC, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless bf91e1d8a2 095/204: Name sections of code,
ELPA Syncer <=
- [elpa] externals/orderless 6c05cf8e00 096/204: Add global dispatcher to compute default matching styles, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 12ea1f2947 110/204: Make transients buffer local, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d42e41c8cb 111/204: Allow separator inside double quotes, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 21e9f87579 116/204: Typo: escapeable --> escapable, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2f2c757a33 117/204: Correct error about orderless-transient-style-dispatchers in README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1f985d0e07 119/204: Remove obsolete temporary separator change command and variables, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c6432b086f 121/204: Bump version number for new smart case feature, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 351d2fbb7d 123/204: Fix typo, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e316991cfe 127/204: Add negative literals (fix #26), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 6fec4f0a52 129/204: Remove a duplicated documentation entry, ELPA Syncer, 2022/01/11