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: [PATCH] (Or "question"...) isearch-kill-found Date: Sun, 30 May 2010 08:25:04 -0700 Message-ID: <9BE2778D1026451087EED8E656851390@us.oracle.com> References: <87iq65v61m.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1275233127 8508 80.91.229.12 (30 May 2010 15:25:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 May 2010 15:25:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: "'Deniz Dogan'" , "=?iso-8859-1?Q?'Johan_Bockg=E5rd'?=" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 30 17:25:22 2010 connect(): No such file or directory 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.69) (envelope-from ) id 1OIkO6-0008L5-K5 for ged-emacs-devel@m.gmane.org; Sun, 30 May 2010 17:25:18 +0200 Original-Received: from localhost ([127.0.0.1]:34161 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIkO5-0000qR-T0 for ged-emacs-devel@m.gmane.org; Sun, 30 May 2010 11:25:18 -0400 Original-Received: from [140.186.70.92] (port=47041 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OIkNx-0000pY-Nn for emacs-devel@gnu.org; Sun, 30 May 2010 11:25:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OIkNv-00009m-W0 for emacs-devel@gnu.org; Sun, 30 May 2010 11:25:09 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:29427) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OIkNv-00009c-QU; Sun, 30 May 2010 11:25:07 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4UFP3Se031616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 30 May 2010 15:25:05 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o4UFP2WF027418; Sun, 30 May 2010 15:25:03 GMT Original-Received: from abhmt021.oracle.com by acsmt354.oracle.com with ESMTP id 309037481275233082; Sun, 30 May 2010 08:24:42 -0700 Original-Received: from dradamslap1 (/141.144.232.13) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 30 May 2010 08:24:41 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsAAgclVIA9MY4lSkaPGj7xGxHlsQABfo7g X-Auth-Type: Internal IP X-Source-IP: rcsinet15.oracle.com [148.87.113.117] X-CT-RefId: str=0001.0A090204.4C028351.00AD:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:125360 Archived-At: > >> Recently, in a discussion on #emacs, we looked for a command which > >> kills the text that has been found using isearch. None of > >> us knew if there existed anything like that and I coludn't find it. > >> > >> So attached is a patch which adds isearch-kill-found and > >> binds it to M-C-m (not too keen on the choice of binding though). > >> > >> Any thoughts or comments? Does this already exist? > > > > A command to simply exit isearch and set the region around the match > > would be more generally useful. The key M-RET would make more sense > > there too. > > > > http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00492.html > > I agree, that makes sense. (FYI, that link is to a side post that is not representative of the thread's proposal.) FWIW, as the person who proposed this feature, here is the history: I mentioned this possibility in help-gnu-emacs on 2006-07-21: http://lists.gnu.org/archive/html/help-gnu-emacs/2006-07/msg00370.html Andreas Roehler contributed some ideas in that thread. I added the feature to my isearch+.el code on 2006-07-29. I proposed the feature to emacs-devel on 2007-07-10: http://lists.gnu.org/archive/html/emacs-devel/2007-07/msg00490.html The bottom line was Richard's decision: "I don't think it is needed. You can type C-@ C-r C-r to put the region around the match that was just found." If you want to try it, to see what you think: http://www.emacswiki.org/emacs/isearch%2b.el `C-SPC' during isearch toggles the effect of the option `isearchp-set-region-flag', which sets the default behavior.