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: Gregory Heytings
Subject: bug#59919: 28.1.50; "kill-matching-lines" takes forever
Date: Fri, 09 Dec 2022 15:23:28 +0000


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.


No worries!

Closing.






reply via email to

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