[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Is it valid to call isearch-filter-predicate outside isearch?
From: |
Michael Heerdegen |
Subject: |
Re: Is it valid to call isearch-filter-predicate outside isearch? |
Date: |
Thu, 01 Jun 2023 01:17:57 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Ihor Radchenko <yantar92@posteo.net> writes:
> The documentation for `isearch-filter-visible' sounds like no side
> effects are expected:
>
> Predicate to filter hits of Isearch and replace commands.
>
> Isearch hits that don't satisfy the predicate will be skipped.
> The value should be a function of two arguments; it will be
> called with the positions of the start and the end of the text
> matched by Isearch and replace commands. If this function
> returns nil, Isearch and replace commands will continue searching
> without stopping at resp. replacing this match.
> This function is expected to be careful not to clobber the match data.
>
> Either the docstring is not accurate or the implementation of
> `isearch-range-invisible' is not safe.
>
> Am I missing something?
No. It has does have side effects that are not documented.
Michael.
- Is it valid to call isearch-filter-predicate outside isearch?, Ihor Radchenko, 2023/05/20
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Juri Linkov, 2023/05/22
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Ihor Radchenko, 2023/05/31
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Eli Zaretskii, 2023/05/31
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Ihor Radchenko, 2023/05/31
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Eli Zaretskii, 2023/05/31
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Ihor Radchenko, 2023/05/31
- RE: [External] : Re: Is it valid to call isearch-filter-predicate outside isearch?, Drew Adams, 2023/05/31
- Re: Is it valid to call isearch-filter-predicate outside isearch?, Michael Heerdegen, 2023/05/31
Re: Is it valid to call isearch-filter-predicate outside isearch?,
Michael Heerdegen <=
Re: Is it valid to call isearch-filter-predicate outside isearch?, Michael Heerdegen, 2023/05/31