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: Drew Adams
Subject: RE: [PATCH] (Or "question"...) isearch-kill-found
Date: Sun, 30 May 2010 08:25:04 -0700

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




reply via email to

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