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

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

bug#59919: 28.1.50; "kill-matching-lines" takes forever


From: aitor
Subject: bug#59919: 28.1.50; "kill-matching-lines" takes forever
Date: Fri, 9 Dec 2022 16:18:05 +0100

On Fri, Dec 09, 2022 at 09:23:38AM +0000, Gregory Heytings wrote:
>
> Are you sure you actually want to _kill_ ("cut" in modern parlance) those
> lines?  In the file you attach, all 10000 lines match "ssh", so it means
> that Emacs "cuts" each of those lines one by one, which of course takes
> (quite) some time.  If you use a regexp that does not match all lines, say
> "109.106.244.80", the effect is almost instantaneous.
> 
> Note that there is also a command "flush-lines", is that not the one you
> actually need here?

You are right, I actually needed the flush-lines command instead of
kill-matching-lines (which is almost instantaneous).

Sorry for the noise, you can close the report.





reply via email to

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