From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Modified isearch Date: Thu, 23 Jan 2014 09:28:37 -0800 (PST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1390498143 9470 80.91.229.3 (23 Jan 2014 17:29:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Jan 2014 17:29:03 +0000 (UTC) To: Peter West , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 23 18:29:09 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 1W6O5V-0000E4-07 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 18:29:09 +0100 Original-Received: from localhost ([::1]:42516 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6O5U-0003b0-J8 for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Jan 2014 12:29:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6O5D-0003Zj-Jb for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 12:28:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6O55-0006VT-MG for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 12:28:51 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6O55-0006VE-EK for help-gnu-emacs@gnu.org; Thu, 23 Jan 2014 12:28:43 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id s0NHScS6026692 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Jan 2014 17:28:39 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0NHSbvH020859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 23 Jan 2014 17:28:38 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id s0NHSbvW020853; Thu, 23 Jan 2014 17:28:37 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8 (707110) [OL 12.0.6680.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:95583 Archived-At: > 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'.