emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master aa9d4a7 17/31: ivy.el (ivy-re-builders-alist): Improve doc


From: Oleh Krehel
Subject: [elpa] master aa9d4a7 17/31: ivy.el (ivy-re-builders-alist): Improve doc
Date: Fri, 01 May 2015 14:28:54 +0000

branch: master
commit aa9d4a78e4acde9ca0ab838be2c18baef2a6ef60
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-re-builders-alist): Improve doc
    
    Re #62
---
 ivy.el |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index d9b51e2..c686157 100644
--- a/ivy.el
+++ b/ivy.el
@@ -409,11 +409,20 @@ For each entry, nil means no sorting.
 The entry associated to t is used for all fall-through cases.")
 
 (defvar ivy-re-builders-alist
-  '((t . ivy--regex))
+  '((t . ivy--regex-plus))
   "An alist of regex building functions for each collection function.
-Each function should take a string and return a valid regex.
+Each function should take a string and return a valid regex or a
+regex sequence (see below).
+
 The entry associated to t is used for all fall-through cases.
-Possible choices: `ivy--regex', `regexp-quote'.")
+Possible choices: `ivy--regex', `regexp-quote', `ivy--regex-plus'.
+
+In case a function returns a list, it should look like this:
+'((\"matching-regexp\" . t) (\"non-matching-regexp\") ...).
+
+The matches will be filtered in a sequence, you can mix the
+regexps that should match and that should not match as you
+like.")
 
 (defcustom ivy-sort-max-size 30000
   "Sorting won't be done for collections larger than this."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]