From: Drew Adams <drew.adams@oracle.com>
To: Peter West <lists@pbw.id.au>, help-gnu-emacs@gnu.org
Subject: RE: Modified isearch
Date: Thu, 23 Jan 2014 09:28:37 -0800 (PST) [thread overview]
Message-ID: <a3eafd5d-5ecf-4984-9428-2d0965edb1fb@default> (raw)
In-Reply-To: <lbr64l$1ruo$1@adenine.netfront.net>
> What I want to do is to invoke normal isearch and isearch-regexp
> functions (forward functions at least), and have the mark reset to
> the beginning of the matched text. Can anyone advise me of the
> way to achieve this?
Yes, just use Isearch+:
http://www.emacswiki.org/cgi-bin/wiki/IsearchPlus#isearchp-set-region-flag
Set option `isearchp-set-region-flag' to non-nil.
That automatically sets the region around the last search target.
And you can toggle this behavior anytime during Isearch, using
`C-SPC' (bound to command `isearchp-toggle-set-region').
And you can manually set the region around the last search
target using `M-x set-region-around-search-target'.
next prev parent reply other threads:[~2014-01-23 17:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-23 13:40 Modified isearch Peter West
2014-01-23 17:28 ` Drew Adams [this message]
2014-01-24 23:12 ` Peter West
2014-01-25 1:24 ` Drew Adams
2014-01-23 18:01 ` Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a3eafd5d-5ecf-4984-9428-2d0965edb1fb@default \
--to=drew.adams@oracle.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lists@pbw.id.au \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).