emacs-devel
[Top][All Lists]
Advanced

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

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


From: Juri Linkov
Subject: Re: [PATCH] (Or "question"...) isearch-kill-found
Date: Sun, 30 May 2010 21:36:49 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu)

> 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/



reply via email to

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