GNU bug report logs -
#59934
28.2; Doc strings of `(kill|delete)-matching-lines'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 9 Dec 2022 22:52:02 UTC
Severity: minor
Found in version 28.2
Fixed in version 29.1
Done: Stefan Kangas <stefankangas <at> gmail.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 59934 in the body.
You can then email your comments to 59934 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59934
; Package
emacs
.
(Fri, 09 Dec 2022 22:52:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Fri, 09 Dec 2022 22:52:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
These two doc strings are _very_ similar. The two commands are
presumably nearly the same, the difference being that one kills
to the `kill-ring' and the other just deletes.
Please consider, in each of these doc strings, adding a reference to the
other command. E.g., "See also `<other>-matching-lines', which is
similar but <summarize the difference>." That will make uses aware of
the existence of the other command. Sometimes users don't consider, or
aren't even aware, of the difference between the two kinds of deletion.
You might also explicitly point out the use case for `kill-*', e.g.,
when giving the summary in the "See also": killing lets you subsequently
yank the matching lines somewhere. Doesn't hurt to point this out
briefly.
In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
of 2022-09-13 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19044
System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2251)
Configured using:
'configure --with-modules --without-dbus --with-native-compilation
--without-compress-install CFLAGS=-O2'
Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
XPM ZLIB
(NATIVE_COMP present but libgccjit not available)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59934
; Package
emacs
.
(Fri, 09 Dec 2022 23:02:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 59934 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The docstring of `kill-matching-lines' already says (just at the end):
If you merely want to delete the lines, without adding them to
the kill ring, the M-x flush-lines command is faster.
but the one for `delete-matching-lines'/`flush-lines' does not mention the
kill- version.
On Fri, Dec 9, 2022 at 11:52 PM Drew Adams <drew.adams <at> oracle.com> wrote:
> These two doc strings are _very_ similar. The two commands are
> presumably nearly the same, the difference being that one kills
> to the `kill-ring' and the other just deletes.
>
> Please consider, in each of these doc strings, adding a reference to the
> other command. E.g., "See also `<other>-matching-lines', which is
> similar but <summarize the difference>." That will make uses aware of
> the existence of the other command. Sometimes users don't consider, or
> aren't even aware, of the difference between the two kinds of deletion.
>
> You might also explicitly point out the use case for `kill-*', e.g.,
> when giving the summary in the "See also": killing lets you subsequently
> yank the matching lines somewhere. Doesn't hurt to point this out
> briefly.
>
> In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
> of 2022-09-13 built on AVALON
> Windowing system distributor 'Microsoft Corp.', version 10.0.19044
> System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2251)
>
> Configured using:
> 'configure --with-modules --without-dbus --with-native-compilation
> --without-compress-install CFLAGS=-O2'
>
> Configured features:
> ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
> NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
> XPM ZLIB
>
> (NATIVE_COMP present but libgccjit not available)
>
>
>
>
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59934
; Package
emacs
.
(Fri, 09 Dec 2022 23:15:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 59934 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
The docstring of `kill-matching-lines' already says (just at the end):
If you merely want to delete the lines, without adding them to
the kill ring, the M-x flush-lines command is faster.
True. What's missing there is the name correspondence/similarity.
I think it would be more helpful if it used `M-x delete-matching-lines'.
Following that link, a user would see that the other name for that is `flush-lines'.
but the one for `delete-matching-lines'/`flush-lines' does not mention the kill- version.
Yup. Wouldn't hurt. No reason to copy to `kill-ring' if that's not really what you want. And some users might not realize the difference.
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59934
; Package
emacs
.
(Tue, 13 Dec 2022 00:49:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 59934 <at> debbugs.gnu.org (full text, mbox):
close 59934 29.1
thanks
Drew Adams <drew.adams <at> oracle.com> writes:
> The docstring of `kill-matching-lines' already says (just at the end):
>
> If you merely want to delete the lines, without adding them to
> the kill ring, the M-x flush-lines command is faster.
>
> True. What's missing there is the name correspondence/similarity.
> I think it would be more helpful if it used `M-x delete-matching-lines'.
> Following that link, a user would see that the other name for that is `flush-lines'.
> but the one for `delete-matching-lines'/`flush-lines' does not mention the kill- version.
Thanks, I fixed that on emacs-29 (commit 489bcacc7c).
bug marked as fixed in version 29.1, send any further explanations to
59934 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 13 Dec 2022 00:49:06 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#59934
; Package
emacs
.
(Tue, 13 Dec 2022 01:21:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 59934 <at> debbugs.gnu.org (full text, mbox):
close 59934 29.1
thanks
Drew Adams <drew.adams <at> oracle.com> writes:
> The docstring of `kill-matching-lines' already says (just at the end):
>
> If you merely want to delete the lines, without adding them to
> the kill ring, the M-x flush-lines command is faster.
>
> True. What's missing there is the name correspondence/similarity.
> I think it would be more helpful if it used `M-x delete-matching-lines'.
> Following that link, a user would see that the other name for that is `flush-lines'.
> but the one for `delete-matching-lines'/`flush-lines' does not mention the kill- version.
Thanks, I fixed that on emacs-29 (commit 489bcacc7c).
bug marked as fixed in version 29.1, send any further explanations to
59934 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Stefan Kangas <stefankangas <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Tue, 13 Dec 2022 01:21:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 10 Jan 2023 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 220 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.