From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: ndame Newsgroups: gmane.emacs.bugs Subject: bug#39908: 26.2; flush-lines and keep-lines should say how many lines were flushed Date: Thu, 5 Mar 2020 16:47:15 +0000 (GMT) Message-ID: References: <83fteovz7g.fsf@gnu.org> <87wo7zso7f.fsf@mail.linkov.net> <87blpb80aq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_28711_536030720.1583426835131" Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85790"; mail-complaints-to="usenet@ciao.gmane.io" Cc: "39908@debbugs.gnu.org" <39908@debbugs.gnu.org>, Juri Linkov To: Noam Postavsky Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 05 17:54:26 2020 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 1j9tlS-000MCz-Do for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 17:54:26 +0100 Original-Received: from localhost ([::1]:53064 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tlR-00009e-Bu for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Mar 2020 11:54:25 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34450) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9tj9-0004M0-0K for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 11:52:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9tj8-0006vG-1s for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 11:52:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37671) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9tj7-0006v7-Uj for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 11:52:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9tj7-0000FH-S0 for bug-gnu-emacs@gnu.org; Thu, 05 Mar 2020 11:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ndame Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Mar 2020 16:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39908 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 39908-submit@debbugs.gnu.org id=B39908.1583427073882 (code B ref 39908); Thu, 05 Mar 2020 16:52:01 +0000 Original-Received: (at 39908) by debbugs.gnu.org; 5 Mar 2020 16:51:13 +0000 Original-Received: from localhost ([127.0.0.1]:43644 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tiL-0000EA-HX for submit@debbugs.gnu.org; Thu, 05 Mar 2020 11:51:13 -0500 Original-Received: from fmfe13.onbox.hu ([46.107.16.206]:25405 helo=web-out.onbox.hu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j9tiH-0000Du-TC for 39908@debbugs.gnu.org; Thu, 05 Mar 2020 11:51:11 -0500 X-fm-smtp-source: yes Original-Received: from localhost (localhost [178.164.221.175]) by web-out.onbox.hu (Postfix) with SMTP id 48YGwR3j3Xz15qH; Thu, 5 Mar 2020 17:51:03 +0100 (CET) In-Reply-To: <87blpb80aq.fsf@gmail.com> X-AccountId: 57978162 X-Originating-Ip: 178.164.221.175 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedugedruddutddgleeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpucfhtffggffotefknfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepfffhvffkjghfufggtghisegrtdersgdttddunecuhfhrohhmpehnuggrmhgvuceovghmrggtshhushgvrhesfhhrvggvmhgrihhlrdhhuheqnecukfhppedujeekrdduieegrddvvddurddujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghloheppdhinhgvthepudejkedrudeigedrvddvuddrudejhedpmhgrihhlfhhrohhmpegvmhgrtghsuhhsvghrsehfrhgvvghmrghilhdrhhhupdhrtghpthhtohepnhhpohhsthgrvhhssehgmhgrihhlrdgtohhm X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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" Xref: news.gmane.io gmane.emacs.bugs:176926 Archived-At: ------=_Part_28711_536030720.1583426835131 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > For keep-lines, if > matches don't span lines, then the number of lines is equal to the > number of lines kept, rather than lines deleted. And there is less > usefulness in reporting lines kept, I agree, that's why I suggested keep-lines should also count and report the number of deletions performed which can be useful info. This is easy to do by incrementing a counter at the two=C2=A0delete-region = calls in keep-lines. ------=_Part_28711_536030720.1583426835131 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit > For keep-lines, if
> matches don't span lines, then the number of lines is equal to the
> number of lines kept, rather than lines deleted. And there is less
> usefulness in reporting lines kept,

I agree, that's why I suggested keep-lines should also count and report
the number of deletions performed which can be useful info.

This is easy to do by incrementing a counter at the two delete-region calls
in keep-lines. ------=_Part_28711_536030720.1583426835131--