From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter West Newsgroups: gmane.emacs.help Subject: Re: Modified isearch Date: Sat, 25 Jan 2014 09:12:22 +1000 Message-ID: <2BCA1A80-675A-49B5-BCF7-0D10EA583FDE@pbw.id.au> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.1 \(1827\)) Content-Type: multipart/signed; boundary="Apple-Mail=_459A709D-BF20-47EF-93B2-8910D642C580"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Trace: ger.gmane.org 1390605173 13869 80.91.229.3 (24 Jan 2014 23:12:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Jan 2014 23:12:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 25 00:12:58 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W6pvm-00013A-8I for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jan 2014 00:12:58 +0100 Original-Received: from localhost ([::1]:49214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6pvl-0005mZ-PL for geh-help-gnu-emacs@m.gmane.org; Fri, 24 Jan 2014 18:12:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35615) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6pvW-0005ls-LU for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:12:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6pvR-0000uX-Ed for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:12:42 -0500 Original-Received: from syds13-n1s.hosting-services.net.au ([112.140.180.11]:17484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6pvQ-0000sb-Qq for help-gnu-emacs@gnu.org; Fri, 24 Jan 2014 18:12:37 -0500 Original-Received: from 60-241-98-20.static.tpgi.com.au ([60.241.98.20]:51563 helo=lydia.local) by SYDS13-N1S.hosting-services.net.au with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.82) (envelope-from ) id 1W6pvE-002eDj-Gi for help-gnu-emacs@gnu.org; Sat, 25 Jan 2014 10:12:24 +1100 X-Priority: 3 In-Reply-To: X-Mailer: Apple Mail (2.1827) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - SYDS13-N1S.hosting-services.net.au X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pbw.id.au X-Get-Message-Sender-Via: SYDS13-N1S.hosting-services.net.au: authenticated_id: pbw@pbw.id.au X-Source: X-Source-Args: X-Source-Dir: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 112.140.180.11 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95635 Archived-At: --Apple-Mail=_459A709D-BF20-47EF-93B2-8910D642C580 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii 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 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? >=20 > Yes, just use Isearch+: >=20 > = http://www.emacswiki.org/cgi-bin/wiki/IsearchPlus#isearchp-set-region-flag= >=20 > Set option `isearchp-set-region-flag' to non-nil. > That automatically sets the region around the last search target. >=20 > And you can toggle this behavior anytime during Isearch, using > `C-SPC' (bound to command `isearchp-toggle-set-region'). >=20 > And you can manually set the region around the last search > target using `M-x set-region-around-search-target'. --Apple-Mail=_459A709D-BF20-47EF-93B2-8910D642C580 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iF4EAREIAAYFAlLi81YACgkQFGZ/4VwFoJ+wLAD/a9wV6oIkip5FEPaPfXkK3GxD YD7dTORTUz1sn9+JfloA/1f0JnV3Wx4N8jyRCl+/zUvgc6F1rSdsfJBZK/+763nk =+Ara -----END PGP SIGNATURE----- --Apple-Mail=_459A709D-BF20-47EF-93B2-8910D642C580--