Kévin Le Gouguec <kevin.legoug...@gmail.com> writes: > Ihor Radchenko <yanta...@gmail.com> writes: > >> Kévin Le Gouguec <kevin.legoug...@gmail.com> writes: >> >>> 1.2. stumps me: is there an isearch API I can use while in the callback >>> to know where the matches are located? >> >> I do not think that there is direct API for this, but the match should >> be accessible through match-beginning/match-end, as I can see from the >> isearch.el code. > > Right, I've seen this too; I wonder if it's a hard guarantee or an > implementation detail. I might page help-gnu-emacs about this.
Another way could by using isearch-filter-predicate. It is given the search region directly.