[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/orderless ac12bc4d54 020/204: Unify calls to save-match
From: |
ELPA Syncer |
Subject: |
[elpa] externals/orderless ac12bc4d54 020/204: Unify calls to save-match-data |
Date: |
Tue, 11 Jan 2022 12:58:14 -0500 (EST) |
branch: externals/orderless
commit ac12bc4d54ea5ba9f909aaf3c2534b2968dcc745
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Unify calls to save-match-data
---
orderless.el | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/orderless.el b/orderless.el
index 0edb2bcfb4..08a2f41cd3 100644
--- a/orderless.el
+++ b/orderless.el
@@ -55,24 +55,24 @@
t))
(defun orderless-all-completions (string table pred _point)
- (let* ((limit (car (completion-boundaries string table pred "")))
- (prefix (substring string 0 limit))
- (all (all-completions prefix table pred))
- (regexps (save-match-data (split-string (substring string limit)))))
- (when minibuffer-completing-file-name
- (setq all (completion-pcm--filename-try-filter all)))
- (condition-case nil
- (progn
- (setq all
- (save-match-data
- (cl-loop for original in all
- for candidate = (copy-sequence original)
- when (cl-loop for regexp in regexps
- always (orderless-highlight-match
- regexp candidate))
- collect candidate)))
- (when all (nconc all (length prefix))))
- (invalid-regexp nil))))
+ (save-match-data
+ (let* ((limit (car (completion-boundaries string table pred "")))
+ (prefix (substring string 0 limit))
+ (all (all-completions prefix table pred))
+ (regexps (split-string (substring string limit))))
+ (when minibuffer-completing-file-name
+ (setq all (completion-pcm--filename-try-filter all)))
+ (condition-case nil
+ (progn
+ (setq all
+ (cl-loop for original in all
+ for candidate = (copy-sequence original)
+ when (cl-loop for regexp in regexps
+ always (orderless-highlight-match
+ regexp candidate))
+ collect candidate))
+ (when all (nconc all (length prefix))))
+ (invalid-regexp nil)))))
(defun orderless-try-completion (string table pred point &optional _metadata)
(let* ((limit (car (completion-boundaries string table pred "")))
- [elpa] externals/orderless 150155ce3c 160/204: Add literal matching to default styles and document (fix #42), (continued)
- [elpa] externals/orderless 150155ce3c 160/204: Add literal matching to default styles and document (fix #42), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 44935d8962 166/204: Fix bug when all matching styles return nil, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless e85084e733 179/204: Merge pull request #58 from minad/add-face-text-property, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 3f76b7d1a1 185/204: Delete duplicate regexps (fix #73), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cc15f27107 188/204: orderless-escapable-split-on-space: Fix escaping mistake, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d97a91f6e1 172/204: Merge pull request #51 from minad/disable-initialism, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 9c1b276fe4 193/204: Optimize orderless-try-completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 7385bcf3c1 203/204: Assign copyright to FSF, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless cce7072dc3 148/204: Mention completion-category-defaults in the documentation, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless b46dbb1045 016/204: Merge branch 'master' of https://github.com/oantolin/orderless, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ac12bc4d54 020/204: Unify calls to save-match-data,
ELPA Syncer <=
- [elpa] externals/orderless 31fbb254c4 036/204: Update badly outdated commentary, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d2b5d71e75 027/204: Better match face defaults (kindly contributed by Protesilaos), ELPA Syncer, 2022/01/11
- [elpa] externals/orderless ff6f57c7c8 046/204: Implement component matching styles, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 36bf6ee6df 048/204: Documentation improvements, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 42eb6bfc6e 053/204: Now on MELPA!, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 1f7339fdf0 049/204: Minor improvements to README, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless d0143484d0 051/204: Fix missing ./ and ../ in file name completion, ELPA Syncer, 2022/01/11
- [elpa] externals/orderless 2df602bc74 060/204: Add TOC to README, ELPA Syncer, 2022/01/11
- [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