[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] (Or "question"...) isearch-kill-found

From: Lennart Borgman
Subject: Re: [PATCH] (Or "question"...) isearch-kill-found
Date: Mon, 31 May 2010 17:38:09 +0200

On Mon, May 31, 2010 at 4:24 PM, Chong Yidong <address@hidden> wrote:
> Juri Linkov <address@hidden> writes:
>> 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)))
> I think this is a good idea, since [delete] isn't currently used.  Maybe
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]