From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: killing the result of isearch Date: Tue, 7 Nov 2017 14:10:32 -0800 (PST) Message-ID: References: <433bd3d0-a506-4d89-9d10-dcbfb0e23be0@default> <852BAA28-2A50-4AD9-B8D6-9F06905A4395@gmail.com> <20171107132316472375613@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1510092674 28472 195.159.176.226 (7 Nov 2017 22:11:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 7 Nov 2017 22:11:14 +0000 (UTC) To: Bob Proulx , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 07 23:11:10 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCC5N-0007Bw-35 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 23:11:09 +0100 Original-Received: from localhost ([::1]:56024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCC5U-0005Xb-Cy for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Nov 2017 17:11:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eCC4y-0005XK-9l for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 17:10:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eCC4u-000637-AH for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 17:10:44 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:21502) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eCC4u-00062s-18 for help-gnu-emacs@gnu.org; Tue, 07 Nov 2017 17:10:40 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vA7MAbx5029348 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Nov 2017 22:10:38 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vA7MAaBe007017 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 7 Nov 2017 22:10:37 GMT Original-Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id vA7MAXVN019562; Tue, 7 Nov 2017 22:10:34 GMT In-Reply-To: <20171107132316472375613@bob.proulx.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4600.0 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:114795 Archived-At: > Let's change "One-two, Buckle my shoe" to something else. > C-s one-two, buckle my shoe C-r RET C-s C-s RET C-x C-x C-w (You don't need the `C-x C-x' here, unless you want to see highlighted what `C-w' will delete.) > Personally I always bind C-s to isearch-forward-regexp instead of > leaving it at isearch-forward. Regular expressions are so much more > powerful and useful. OK, but what you show above does not work, in general, for regexps. Regexp search forward and backward do not find the same text, generally. If you regexp-search for the same text, `one-two, buckle my shoe', no problem. But if you use `o.*oe' you'll be in trouble.