From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (Or "question"...) isearch-kill-found Date: Sun, 30 May 2010 21:36:49 +0300 Organization: JURTA Message-ID: <87vda59rby.fsf@mail.jurta.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1275244912 13173 80.91.229.12 (30 May 2010 18:41:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 30 May 2010 18:41:52 +0000 (UTC) Cc: Emacs-Devel devel To: Deniz Dogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 30 20:41:50 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 1OInSG-00083w-4i for ged-emacs-devel@m.gmane.org; Sun, 30 May 2010 20:41:48 +0200 Original-Received: from localhost ([127.0.0.1]:55573 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OInSE-0002om-U6 for ged-emacs-devel@m.gmane.org; Sun, 30 May 2010 14:41:47 -0400 Original-Received: from [140.186.70.92] (port=50458 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OInS6-0002lu-IN for emacs-devel@gnu.org; Sun, 30 May 2010 14:41:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OInS4-0007sW-IQ for emacs-devel@gnu.org; Sun, 30 May 2010 14:41:38 -0400 Original-Received: from smtp-out1.starman.ee ([85.253.0.3]:37466 helo=mx1.starman.ee) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OInS4-0007sL-Ay for emacs-devel@gnu.org; Sun, 30 May 2010 14:41:36 -0400 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Original-Received: from mail.starman.ee (82.131.30.129.cable.starman.ee [82.131.30.129]) by mx1.starman.ee (Postfix) with ESMTP id 25AD63F4091; Sun, 30 May 2010 21:41:28 +0300 (EEST) In-Reply-To: (Deniz Dogan's message of "Sun, 30 May 2010 14:37:25 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:125366 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 delete the current match without exiting isearch would be more useful. It will allow to continue searching for the next matches and delete them too: (define-key isearch-mode-map [delete] 'isearch-delete-current-match) (defun isearch-delete-current-match () "Kills the region that isearch has found." (interactive) (kill-region isearch-other-end (point))) -- Juri Linkov http://www.jurta.org/emacs/