From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (Or "question"...) isearch-kill-found Date: Mon, 31 May 2010 17:38:09 +0200 Message-ID: References: <87vda59rby.fsf@mail.jurta.org> <87vda45euq.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1275320322 6938 80.91.229.12 (31 May 2010 15:38:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 31 May 2010 15:38:42 +0000 (UTC) Cc: Juri Linkov , Deniz Dogan , Emacs-Devel devel To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 31 17:38:40 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 1OJ74Z-0001qY-3w for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 17:38:39 +0200 Original-Received: from localhost ([127.0.0.1]:58164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ74Y-0007kO-KF for ged-emacs-devel@m.gmane.org; Mon, 31 May 2010 11:38:38 -0400 Original-Received: from [140.186.70.92] (port=51445 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJ74R-0007hr-PE for emacs-devel@gnu.org; Mon, 31 May 2010 11:38:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJ74Q-0006YC-C9 for emacs-devel@gnu.org; Mon, 31 May 2010 11:38:31 -0400 Original-Received: from mail-yw0-f187.google.com ([209.85.211.187]:59906) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJ74Q-0006Y5-9u for emacs-devel@gnu.org; Mon, 31 May 2010 11:38:30 -0400 Original-Received: by ywh17 with SMTP id 17so38255ywh.1 for ; Mon, 31 May 2010 08:38:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=KcsBBxwyMfiSP4jpqOEjn+aFOGFzhDM63qMMQJr6rtc=; b=Vz+jSe2k3cLjmd/Liv6jgIxg4ZvX3mr8v1qOglTyuIYo1pxWHYXHPHTtrUBB4cc7R4 M8I9EiBHT34LEN+LXMbWqk/EN+UcvAStAzvBeQWrzibukyyvxNnjRgb/u7weIszAF/4F /ezAi61ikPuypMP9tTbc+O3mhszpQUIbaKHxk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=omOhaKBsIAf1/6dUcrFIvtAEH/I+Z30oOJ3A7qNDaRTBllRclv5GAmOwT/heYWQMAH P6aZ9qS/BtNtXKKm4lle/1Wtr5lciuqk5ZuvjyuN+xv37XMpDcQzv60u+ACIU+JSdds+ UXGT8pAsMdtMV1WvBRSs6bpZ/UWZRXR7L3L/4= Original-Received: by 10.101.129.7 with SMTP id g7mr4956825ann.84.1275320309393; Mon, 31 May 2010 08:38:29 -0700 (PDT) Original-Received: by 10.100.44.20 with HTTP; Mon, 31 May 2010 08:38:09 -0700 (PDT) In-Reply-To: <87vda45euq.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:125396 Archived-At: On Mon, May 31, 2010 at 4:24 PM, Chong Yidong wrote= : > Juri Linkov writes: > >> A command to delete the current match without exiting isearch >> would be more useful. =C2=A0It 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 () >> =C2=A0 "Kills the region that isearch has found." >> =C2=A0 (interactive) >> =C2=A0 (kill-region isearch-other-end (point))) > > I think this is a good idea, since [delete] isn't currently used. =C2=A0M= aybe > add C-d also. Can't you easily do this by for example switching to query-replace from within isearch? I think being able to mark the match at exit would be more useful. (This could also easily be used to delete the matched region.) And perhaps exiting with a submatch marked instead could be done with numerical prefixes.