From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alexander Shukaev <haroogan@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Isearch: add variable to control search match group
Date: Tue, 25 Aug 2015 10:45:42 -0400 [thread overview]
Message-ID: <jwvegir1l8t.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <CAKu-7WxshjUw1DiTn3kXnFTktZiKYNHCdTAVnF5JRa1mPLjgYg@mail.gmail.com> (Alexander Shukaev's message of "Tue, 25 Aug 2015 01:55:12 +0200")
> 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
next prev parent reply other threads:[~2015-08-25 14:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 23:55 Isearch: add variable to control search match group Alexander Shukaev
2015-08-25 14:45 ` Stefan Monnier [this message]
2015-08-25 15:06 ` Alexander Shukaev
2015-08-25 22:08 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvegir1l8t.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=haroogan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.