all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Gregory Heytings <gregory@heytings.org>
To: aitor <a.soroa@gmail.com>
Cc: 59919-done@debbugs.gnu.org
Subject: bug#59919: 28.1.50; "kill-matching-lines" takes forever
Date: Fri, 09 Dec 2022 15:23:28 +0000	[thread overview]
Message-ID: <574c1ceba8965730c145@heytings.org> (raw)
In-Reply-To: <Y5NRrU0w4jCelLao@sipc87.si.ehu.es>


>> 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	other threads:[~2022-12-09 15:23 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
2022-12-09 15:23     ` Gregory Heytings [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=574c1ceba8965730c145@heytings.org \
    --to=gregory@heytings.org \
    --cc=59919-done@debbugs.gnu.org \
    --cc=a.soroa@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.