From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#59919: 28.1.50; "kill-matching-lines" takes forever Date: Fri, 09 Dec 2022 15:23:28 +0000 Message-ID: <574c1ceba8965730c145@heytings.org> References: <87sfhpm07t.fsf@u018594.mail-host-address-is-not-set> <574c1ceba8a3945384ac@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6161"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59919-done@debbugs.gnu.org To: aitor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 09 16:25:44 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3fFu-0001KM-Sd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Dec 2022 16:25:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3fEL-0002jH-If; Fri, 09 Dec 2022 10:24:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3fEK-0002hE-5U for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 10:24:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p3fEJ-0001yb-82 for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 10:24:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3fEI-0005qL-N1 for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 10:24:02 -0500 Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Dec 2022 15:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 59919 X-GNU-PR-Package: emacs Mail-Followup-To: 59919@debbugs.gnu.org, gregory@heytings.org, a.soroa@gmail.com Original-Received: via spool by 59919-done@debbugs.gnu.org id=D59919.167059941322442 (code D ref 59919); Fri, 09 Dec 2022 15:24:02 +0000 Original-Received: (at 59919-done) by debbugs.gnu.org; 9 Dec 2022 15:23:33 +0000 Original-Received: from localhost ([127.0.0.1]:36782 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3fDo-0005pu-Oy for submit@debbugs.gnu.org; Fri, 09 Dec 2022 10:23:33 -0500 Original-Received: from heytings.org ([95.142.160.155]:50470) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3fDl-0005po-P4 for 59919-done@debbugs.gnu.org; Fri, 09 Dec 2022 10:23:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20220101; t=1670599408; bh=jP/7JYzCKlcYt11qb0l6RYB1+AoHkfeJ/zfabN+7q9E=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=IkEiqOAFOeJjy/3onVEn2txUAh06CI13AOm/EoWrdUW/WsmfpIV0de6Nnr9dbaCMB vif+X5qu9AlvPgxU6IziV1FIWkn77bwiVX0lBP4UXcBVwdFVhyDIdYe/p5zqYwNo1g /YDfE6Q0HIn5HsypkpxpUiq2vjDXlv5Wr0QMHaCupvTO6Wu5HKN1OtpJGzmr6KTWT5 gYCJ8rbb08mihG6HRMA163zslVvT9EDoMRwH69LxDwzjeblpCZKc/LbEP7c9MEa2LA Zq8oHmEqgV3p51U+spYKoymt8ZME/OTepr7xfqoI4XY+XmYwOhaziAXbR60UoXtzGR bdkQt0xLNQkww== In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:250406 Archived-At: >> 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.