|
From: | Stefan Monnier |
Subject: | Re: Isearch: add variable to control search match group |
Date: | Tue, 25 Aug 2015 18:08:59 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> Do you mean that I can modify `my-search-function' in such a way that > the calls to `match-beginning' and `match-end' with group 0 happening > inside and after calls to `isearch-forward' and `isearch-backward' > will return the positions of the middle group excluding anchors? That's right. E.g. (set-match-data (list (match-beginning 1) (match-end 1))) or (set-match-data (cddr (match-data))) should get you started. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |