From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#59934: 28.2; Doc strings of `(kill|delete)-matching-lines' Date: Sat, 10 Dec 2022 00:01:04 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000eebdc505ef6d22c1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6905"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59934@debbugs.gnu.org To: Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 10 00:02:23 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 1p3mNr-0001a6-Ki for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Dec 2022 00:02:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3mNX-0008Nb-Ib; Fri, 09 Dec 2022 18:02:03 -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 1p3mNW-0008NS-R4 for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 18:02:02 -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 1p3mNW-0005oV-Dr for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 18:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p3mNW-0007G8-8V for bug-gnu-emacs@gnu.org; Fri, 09 Dec 2022 18:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Dec 2022 23:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59934 X-GNU-PR-Package: emacs Original-Received: via spool by 59934-submit@debbugs.gnu.org id=B59934.167062690727889 (code B ref 59934); Fri, 09 Dec 2022 23:02:02 +0000 Original-Received: (at 59934) by debbugs.gnu.org; 9 Dec 2022 23:01:47 +0000 Original-Received: from localhost ([127.0.0.1]:39055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3mNH-0007Fl-5u for submit@debbugs.gnu.org; Fri, 09 Dec 2022 18:01:47 -0500 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:41799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p3mNF-0007Fb-VX for 59934@debbugs.gnu.org; Fri, 09 Dec 2022 18:01:46 -0500 Original-Received: by mail-ed1-f47.google.com with SMTP id m19so5101439edj.8 for <59934@debbugs.gnu.org>; Fri, 09 Dec 2022 15:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=29/uRlpcQCW4sYEAKElKdvRHr1PEVuFwwDFdlRmAnmg=; b=K07y8ijPvwQLtZHWZMkd5bq2t2Wi25fGMzxiFZKq/0vnkDNQXa7gpTxykuA+bVkKNZ opImiz9qAg3YwLBbeAG1UBoJWXWb5jBjrqftE5T7KTtThF5xa+RXEXQiB73PbDl9Ng3S /quL2xg6TrLor2/HloaNbDS3sXjdZEQ7wfhnzZMRNh16S1zI0bmDfAEkBObUN7oSjmT4 iR8/cFRhh90cZ0iMmRwk3qF/R2zgTt38uLJm1hMyfS6bF6rZQbGSJ6pye98WCwylExwj ucU5QWD5xFLvPQRbTYFHVwh+92LYTBehjKkLegI4eht2NLdxgTF52//ssKq/1XHyHIuX GQzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=29/uRlpcQCW4sYEAKElKdvRHr1PEVuFwwDFdlRmAnmg=; b=SgJw/K8Rvj9j78LKKbYCYEM2yQ+COhOYYh6hJXBaBavkfQGPefP7RAG3JOpRbGHiA5 +EIymUFmqCRbkOIyAn3lZVRTbbXwRIn+x9vkV+BjRcpgH0TuaQidCkSt1uxxxPnb9AaD R8JM8DH2UimfQ9VoNIRlEMS76SH720fTS6AwLte+mLQVk6ynYuhnPRZY3xrxAzucvowv GNHnHWIVEsuwV6dPvq2qrtEdvNZ432xgg/puFDA2UNNaYGFrlgufOCnDIQw9T66Y7HzC DJMaH5kAk/lD9pN33ZBTEXHS2/O2fzqUCHvArzyIKV+dtgGfbahYmEvHhlfQI3Sa9MOJ 1PwA== X-Gm-Message-State: ANoB5pnyE3Z4e6++avDkjrwmTIBc2NulNZB6LaBHCVrXfxeNQQ3k5ZDk JyHPYpQWh9AtgWSU1KogkgHDInocMlhJBIvMtjk= X-Google-Smtp-Source: AA0mqf485icaesmXt/tKFyjUMUPcCoRKKyzegmILxpvO5v6gaOMnPvcKhBHDKBAYuav0azdqB321lkw/sWZat/nLEk4= X-Received: by 2002:aa7:d7c4:0:b0:46c:751a:faad with SMTP id e4-20020aa7d7c4000000b0046c751afaadmr18483245eds.163.1670626900096; Fri, 09 Dec 2022 15:01:40 -0800 (PST) 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:250475 Archived-At: --000000000000eebdc505ef6d22c1 Content-Type: text/plain; charset="UTF-8" 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 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 `-matching-lines', which is > similar but ." 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) > > > > > --000000000000eebdc505ef6d22c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The docstring of `kill-matching-lines' already says (just at = the end):

=C2=A0 If you merely want to delete the lines, without add= ing them to
=C2=A0 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 Ad= ams <drew.adams@oracle.com&= gt; wrote:
These= two doc strings are _very_ similar.=C2=A0 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.=C2=A0 E.g., "See also `<other>-matching-lines'= ;, which is
similar but <summarize the difference>."=C2=A0 That will make us= es aware of
the existence of the other command.=C2=A0 Sometimes users don't conside= r, 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 subse= quently
yank the matching lines somewhere.=C2=A0 Doesn't hurt to point this out=
briefly.

In GNU Emacs 28.2 (build 2, x86_64-w64-mingw32)
=C2=A0of 2022-09-13 built on AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.19044<= br> System Description: Microsoft Windows 10 Pro (v10.0.2009.19044.2251)

Configured using:
=C2=A0'configure --with-modules --without-dbus --with-native-compilatio= n
=C2=A0--without-compress-install CFLAGS=3D-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)




--000000000000eebdc505ef6d22c1--