[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless 7e57a5458c 085/204: Allow dispatcher to modif
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless 7e57a5458c 085/204: Allow dispatcher to modify component without handling it |
Date: |
Tue, 11 Jan 2022 12:58:19 -0500 (EST) |
branch: externals/orderless
commit 7e57a5458ce84f32345a7d96e93105fd6b18cae7
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Allow dispatcher to modify component without handling it
This needs to be documented
---
orderless.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/orderless.el b/orderless.el
index 2f3836ff7d..8c21ef0308 100644
--- a/orderless.el
+++ b/orderless.el
@@ -281,9 +281,12 @@ match."
(cl-loop
for component in (split-string pattern orderless-component-separator)
and index from 0
- for styles = (or (run-hook-with-args-until-success
- 'orderless-style-dispatchers component index)
- orderless-component-matching-styles)
+ for styles = (cl-loop for dispatcher in orderless-style-dispatchers
+ for result = (funcall dispatcher component index)
+ when (stringp result)
+ do (setq component result result nil)
+ thereis result
+ finally (return orderless-component-matching-styles))
when (and (consp styles) (stringp (cdr styles)))
;; dispatcher requested component change
do (setq component (cdr styles) styles (car styles))
- [elpa] externals/orderless ae36760f61 015/204: Colorize matching portions of candidates, (continued)
- [elpa] externals/orderless ae36760f61 015/204: Colorize matching portions of candidates, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2913935f16 002/204: Add README and tweak commentary, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2be7bf8c3d 009/204: Add forgotten :test to cl-pushnew call, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 4effeb0839 032/204: Merge pull request #5 from protesilaos/update-defface-syntax, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 118ec4f36a 025/204: Document customization options, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3b2741737b 042/204: Fix regression bug on no matches, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ba93f3e521 055/204: Typo in README pointed out by codecoll, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless c23a9a40be 050/204: Typo in README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 40d46ba925 080/204: Fix typo, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless a3471e47aa 083/204: Explain company integration (+ misc formatting improvements), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 7e57a5458c 085/204: Allow dispatcher to modify component without handling it,
ELPA Syncer <=
- [elpa] externals/orderless 7a547b5722 093/204: Drew says "progressive completion", ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 99e90bf139 103/204: Declare orderless-old-component-separator obsolete too, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 42bca066b9 108/204: Split dispatchers into their own variable, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 81248a8dbf 109/204: Merge branch 'dispatcher', ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 0efa87672d 011/204: Fix bug on no matches, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless acc2645cf3 030/204: Even better match faces (kindly contributed by Protesilaos), ELPA Syncer, 2022/01/11
- [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