From: Peter West <lists@pbw.id.au>
To: help-gnu-emacs@gnu.org
Subject: Re: Modified isearch
Date: Sat, 25 Jan 2014 09:12:22 +1000 [thread overview]
Message-ID: <2BCA1A80-675A-49B5-BCF7-0D10EA583FDE@pbw.id.au> (raw)
In-Reply-To: <a3eafd5d-5ecf-4984-9428-2d0965edb1fb@default>
[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]
Thanks Drew.
That will do nicely.
I would still like, at some time, to understand isearch and elisp well enough to be able to write such a function as required.
Peter West
...for he had healed many, and all who had diseases pressed upon him, to touch him.
On 24 Jan 2014, at 3:28 am, Drew Adams <drew.adams@oracle.com> wrote:
>> 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'.
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 235 bytes --]
next prev parent reply other threads:[~2014-01-24 23:12 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
2014-01-24 23:12 ` Peter West [this message]
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=2BCA1A80-675A-49B5-BCF7-0D10EA583FDE@pbw.id.au \
--to=lists@pbw.id.au \
--cc=help-gnu-emacs@gnu.org \
/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).