From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: option to let isearch select the search target (in transient mark mode) Date: Tue, 10 Jul 2007 14:56:38 -0700 Message-ID: References: <35636.128.165.123.18.1184099832.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1184104751 18432 80.91.229.12 (10 Jul 2007 21:59:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2007 21:59:11 +0000 (UTC) Cc: Emacs-Devel To: Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 10 23:59:10 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1I8Nje-0000BD-SI for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2007 23:59:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8Nje-0004wC-Ey for ged-emacs-devel@m.gmane.org; Tue, 10 Jul 2007 17:59:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I8NiP-0004Ca-VW for emacs-devel@gnu.org; Tue, 10 Jul 2007 17:57:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I8NiP-0004Br-4l for emacs-devel@gnu.org; Tue, 10 Jul 2007 17:57:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I8NiO-0004BJ-LM for emacs-devel@gnu.org; Tue, 10 Jul 2007 17:57:48 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I8NiO-0004jk-1A for emacs-devel@gnu.org; Tue, 10 Jul 2007 17:57:48 -0400 Original-Received: from rgmgw3.us.oracle.com (rgmgw3.us.oracle.com [138.1.186.112]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l6ALvfmL016130; Tue, 10 Jul 2007 15:57:42 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by rgmgw3.us.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id l6AIjlcb028250; Tue, 10 Jul 2007 15:57:41 -0600 Original-Received: from dhcp-amer-csvpn-gw2-141-144-73-85.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3027025271184104603; Tue, 10 Jul 2007 14:56:43 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <35636.128.165.123.18.1184099832.squirrel@webmail.lanl.gov> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:74585 Archived-At: > > How about adding this to Isearch: Depending on the value of an option, > > `isearch-set-region-flag', Isearch leaves the region active around the > > search target when you stop searching with `RET'. This is only for > > Transient Mark mode; if that mode is not on, then this does nothing. > > > > This feature makes it easy to delete the found text, copy it, or type > > to replace it in Delete Selection mode. You can toggle the option at > > any time during searching, with `C-SPC'. > > I have a hard time seeing this as useful (although, to state my potential > biases, I use neither Transient Mark nor Delete Selection mode). I stated clearly that "This is only for Transient Mark mode." If you don't use that mode, then, no, you won't find this useful. Neither should you find it an obstacle, however, since it does nothing in that case. > The whole point of the i in isearch is that one very rarely needs to type > "all" of the target string (or the regexp describing it). Having found my > target with, say, 3 of its 11 characters specified, I would find it much > easier to type something like M-b M-d M-d to kill it (followed by C-y if I > wanted to copy it), perhaps followed by self-inserts to replace it, than > to type the rest of the target (no typos1) and then have isearch drop the > mark usefully. In Delete Selection mode, you would just type the replacement, or hit `DEL' to delete the selection. Deleting text after the search hit is another matter. That is the same regardless of whether you use something like Transient Mark mode: `M-d' or whatever. Or you can use `C-w' before exiting, or... > If you're suggesting instead... No, that's your suggestion, not mine.