[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom function to build the regexp in isearch |
Date: |
Wed, 6 Oct 2021 00:01:28 -0400 (EDT) |
branch: elpa/popup
commit 47008e130c460336ff074e60b3b5f308cd4aac8f
Author: Samuel Loury <konubinixweb@gmail.com>
Commit: Samuel Loury <konubinixweb@gmail.com>
Allow the user to specify a custom function to build the regexp in isearch
If the user likes to use helm or ivy style of matching candidates,
they can provide their own regexp builer.
For instance, in case you like to 'foo bar' to match 'foo.+bar',
you can provide a function that replaces spaces by '.+'.
---
popup.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/popup.el b/popup.el
index 392833b..bad8404 100644
--- a/popup.el
+++ b/popup.el
@@ -887,13 +887,18 @@ Pages up through POPUP."
(defvar popup-menu-show-quick-help-function 'popup-menu-show-quick-help
"Function used for showing quick help by `popup-menu*'.")
+(defcustom popup-isearch-regexp-builder-function 'regexp-quote
+ "Function used to construct a regexp from a pattern. You may for instance
+ provide a function that replaces spaces by '.+' if you like helm or ivy style
+ of completion.")
+
(defsubst popup-isearch-char-p (char)
(and (integerp char)
(<= 32 char)
(<= char 126)))
(defun popup-isearch-filter-list (pattern list)
- (cl-loop with regexp = (regexp-quote pattern)
+ (cl-loop with regexp = (funcall popup-isearch-regexp-builder-function
pattern)
for item in list
do
(unless (stringp item)
- [nongnu] elpa/popup a49ffd0 081/184: Rename :initial-cursor keyword option to :cursor., (continued)
- [nongnu] elpa/popup a49ffd0 081/184: Rename :initial-cursor keyword option to :cursor., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5809969 041/184: Add test case for margin, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e5794f8 052/184: Truncate summary when it is too long, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 967cde1 067/184: Merge pull request #30 from tkf/summary-face, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup e164f3b 098/184: fixed without ignore-errors, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 34be113 116/184: Merge pull request #78 from aki2o/fix-popup-delete, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup dcc9ee5 119/184: Merge pull request #80 from ancane/master, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 0bead7c 086/184: Use cl-lib functions instead of cl in tests, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 29c6db4 130/184: Pass filtering function as an argument to popup-menu*, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 5374e55 110/184: Merge pull request #73 from auto-complete/add-initial-index-test, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 47008e1 135/184: Allow the user to specify a custom function to build the regexp in isearch,
ELPA Syncer <=
- [nongnu] elpa/popup 3d62f15 161/184: Merge pull request #112 from PuercoWork/patch-1, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup cf2cefe 166/184: Fixed compile warning, free variable from display line numbers., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 51f4430 171/184: Fixed to not use emacs 26.1 as dep., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 28762fc 138/184: Improve definition, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 88efff5 010/184: Not to insert newlines., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup bb4bb26 019/184: git mv popup-test.el tests/popup-interactive-test.el, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 07901c6 023/184: Merge pull request #15 from tkf/travis-ci, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 31779da 028/184: Fix test case bug when batch mode., ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 4a31175 033/184: Split setup macro to support extra setup, ELPA Syncer, 2021/10/06
- [nongnu] elpa/popup 52059d6 055/184: Merge pull request #24 from tkf/summary-overflow, ELPA Syncer, 2021/10/06