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

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

[elpa] master d2a89ea 261/272: doc/ivy.org: Add a note on :predicate


From: Oleh Krehel
Subject: [elpa] master d2a89ea 261/272: doc/ivy.org: Add a note on :predicate
Date: Mon, 25 Apr 2016 10:13:29 +0000

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

    doc/ivy.org: Add a note on :predicate
---
 doc/ivy.org  |    4 +++-
 doc/ivy.texi |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/doc/ivy.org b/doc/ivy.org
index d8b397a..8c0f357 100644
--- a/doc/ivy.org
+++ b/doc/ivy.org
@@ -1070,7 +1070,9 @@ features such as multi-actions, non-exiting actions, 
=ivy-occur= and
 :END:
 - =predicate= ::
      Is a function to filter the initial collection. It has to be
-     compatible with =all-completions=.
+     compatible with =all-completions=. Tip: most of the time, it's
+     simpler to just apply this filter to the =collection= argument
+     itself, e.g. =(cl-remove-if-not predicate collection)=.
 - =require-match= ::
      When set to a non-nil value, input must match one of the
      candidates. Custom input is not accepted.
diff --git a/doc/ivy.texi b/doc/ivy.texi
index 24a0c5b..64afd6b 100644
--- a/doc/ivy.texi
+++ b/doc/ivy.texi
@@ -1408,7 +1408,9 @@ If a function, then it has to be compatible with
 @subsubheading @code{predicate}
 @indentedblock
 Is a function to filter the initial collection. It has to be
-compatible with @code{all-completions}.
+compatible with @code{all-completions}. Tip: most of the time, it's
+simpler to just apply this filter to the @code{collection} argument
+itself, e.g. @code{(cl-remove-if-not predicate collection)}.
 @end indentedblock
 @subsubheading @code{require-match}
 @indentedblock



reply via email to

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