help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: killing the result of isearch


From: Jean-Christophe Helary
Subject: Re: killing the result of isearch
Date: Wed, 8 Nov 2017 08:15:32 +0900

Bob, thank you very much for the detailed reply.

I've tried again the default behavior in the editor where I usually do my regex 
search/replaces (BBEdit) and the only (and major) difference is where the mark 
is put at the beginning of the search. In emacs it is put where the point is at 
the beginning of the search, in BBEdit it is put at the beginning of the match, 
so the region "matches" the search match.

Now, I'm not going to argue about which is best, because the designs are 
different, as Stephan wrote, search in emacs finds a location and allows the 
user to act on that location while finding the match is not the purpose but 
just the means to accomplish that, while in BBEdit finding the match is the 
purpose of the function.


> On Nov 8, 2017, at 5:59, Bob Proulx <bob@proulx.com> wrote:
> 
> Jean-Christophe Helary wrote:
>> I have an isearch that highlights a string, and I just want to delete
>> that string.
> ...
> I have been using emacs for a very long time and that isn't a feature
> I have ever missed.  However I will say that language shapes the way
> you think.  If the language you use does or does not have a construct
> then it shapes the way one thinks about it.  Emacs doesn't
> intrinsically have that feature but has other features and therefore I
> think and use those other features.
> 
> The answers suggesting M-% are excellent suggestions.

Not really, because if I know what kind of regex I'm looking for, I don't 
always know how I want to change the match, that depends on context, and 
overwriting a selection is very often more efficient than going through a 
replace hoop.

Jean-Christophe Helary
-----------------------------------------------
@brandelune http://mac4translators.blogspot.com


reply via email to

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