emacs-devel
[Top][All Lists]
Advanced

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

Re: Isearch: add variable to control search match group


From: Stefan Monnier
Subject: Re: Isearch: add variable to control search match group
Date: Tue, 25 Aug 2015 10:45:42 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> interactive one).  Imagine that my search module wants to search for

> \(^\|\s-+?\)(;;)\($\|\s-+?\)

> and I am actually only interested in the "(;;)" part since I also want
> to highlight it (with both, current match highlighting and all matches
> lazy highlighting).  Then, clearly, "\(^\|\s-+?\)" and "\($\|\s-+?\)"
> are just anchors.

How do you do that currently?  I'd expect that to do the above, you'd
set isearch-search-fun-function, and that function can take care of
shuffling the match-data so that the interesting part is
match-subgroup 0.


        Stefan



reply via email to

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