From: aitor <a.soroa@gmail.com>
To: Gregory Heytings <gregory@heytings.org>
Cc: 59919@debbugs.gnu.org
Subject: bug#59919: 28.1.50; "kill-matching-lines" takes forever
Date: Fri, 9 Dec 2022 16:18:05 +0100 [thread overview]
Message-ID: <Y5NRrU0w4jCelLao@sipc87.si.ehu.es> (raw)
In-Reply-To: <574c1ceba8a3945384ac@heytings.org>
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.
next prev parent reply other threads:[~2022-12-09 15:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-09 8:48 bug#59919: 28.1.50; "kill-matching-lines" takes forever a.soroa
2022-12-09 9:23 ` Gregory Heytings
2022-12-09 15:18 ` aitor [this message]
2022-12-09 15:23 ` Gregory Heytings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y5NRrU0w4jCelLao@sipc87.si.ehu.es \
--to=a.soroa@gmail.com \
--cc=59919@debbugs.gnu.org \
--cc=gregory@heytings.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).