emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#34520: closed (delete-matching-lines should report


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#34520: closed (delete-matching-lines should report how many lines it deleted)
Date: Thu, 28 Feb 2019 21:34:02 +0000

Your message dated Thu, 28 Feb 2019 23:33:10 +0200
with message-id <address@hidden>
and subject line Re: bug#34520: delete-matching-lines should report how many 
lines it deleted
has caused the debbugs.gnu.org bug report #34520,
regarding delete-matching-lines should report how many lines it deleted
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
34520: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34520
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: delete-matching-lines should report how many lines it deleted Date: Mon, 18 Feb 2019 08:35:08 +0800
delete-matching-lines is an alias for ‘flush-lines’ in ‘replace.el’.

It works great... or does it? Can't often tell. That's because well,
if there are matching lines off the screen, you won't really know, so
you have to go down there to have a look... and well, need eagle eyes
often too depending on the pattern and how many similar lines there
still are.

Got an idea!: Simply keep a count of how many lines were deleted, and
report that in the minibuffer, if using interactively.

What if there were no matching lines?
Then say
Deleted 0 matching lines.
Or beep "No matching lines!"

Try this with matching lines all below the visible part of the buffer:
C-x h [mark-whole-buffer]
M-x delete-matching-lines zzzzz

See the feeling (felt nothing, did it work in the first place one wonders?)



--- End Message ---
--- Begin Message --- Subject: Re: bug#34520: delete-matching-lines should report how many lines it deleted Date: Thu, 28 Feb 2019 23:33:10 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu)
>> +    (when interactive (message "Deleted %d matching line%s"
>> +                           count
>> +                           (if (= count 1) "" "s")))
>> +    count))
>
> The concatenation of "s" trick works only in English, so please avoid
> that.

Ok, waiting for the times when ‘gettext’ will arrive to Emacs.

> This needs NEWS and manual updates.

Done.


--- End Message ---

reply via email to

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