help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Modified isearch


From: Peter West
Subject: Re: Modified isearch
Date: Sat, 25 Jan 2014 09:12:22 +1000

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: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

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