From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Sun, 21 Feb 2021 12:41:47 +0200 Message-ID: <189946C1-8CC9-4F7E-BAE6-FC19D2377D39@gnu.org> References: <87tuq99ova.fsf@mail.linkov.net> <87y2fkrypp.fsf@gnus.org> <87ft1qq4b6.fsf@gnus.org> <87o8ge8ugr.fsf@mail.linkov.net> <87im6lls1r.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34649"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: K-9 Mail for Android Cc: larsi@gnus.org, mardani29@yahoo.es To: 46621@debbugs.gnu.org, juri@linkov.net, rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 21 11:42:10 2021 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 1lDmBm-0008sW-7O for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 11:42:10 +0100 Original-Received: from localhost ([::1]:51254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDmBl-0000b9-AE for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 05:42:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDmBe-0000Yb-Kq for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 05:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42011) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDmBe-0004rU-DV for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 05:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDmBe-0002xp-Bf for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 05:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2021 10:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46621 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Juri Linkov , Richard Stallman X-Debbugs-Original-Cc: 46621@debbugs.gnu.org, larsi@gnus.org, mardani29@yahoo.es Original-Received: via spool by submit@debbugs.gnu.org id=B.161390412111380 (code B ref -1); Sun, 21 Feb 2021 10:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2021 10:42:01 +0000 Original-Received: from localhost ([127.0.0.1]:53557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDmBc-0002xU-VM for submit@debbugs.gnu.org; Sun, 21 Feb 2021 05:42:01 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52762) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDmBb-0002xN-O2 for submit@debbugs.gnu.org; Sun, 21 Feb 2021 05:42:00 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52230) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDmBb-0000Xq-Gn for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 05:41:59 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:60898) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDmBa-0004mL-2j; Sun, 21 Feb 2021 05:41:58 -0500 Original-Received: from [2a02:14f:1fd:b59e::1116:7df2] (port=52868) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1lDmBS-0004cW-IR; Sun, 21 Feb 2021 05:41:50 -0500 In-Reply-To: <87im6lls1r.fsf@mail.linkov.net> 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" Xref: news.gmane.io gmane.emacs.bugs:200481 Archived-At: On February 21, 2021 10:54:24 AM GMT+02:00, Juri Linkov = wrote: > > > >> In programming modes, if you need to declare a bunch of > variables, you > > > >> may duplicate the current line several times and then proceed > to rename > > > >> them=2E I see the proposed new command may be useful in that > scenario=2E > > > > Once in a while I want to do that=2E It is easy: C-a C-k C-k, > > they C-y as many times as needed=2E >=20 > Let's compare these two solutions=2E Trying to copy 10 lines: >=20 > C-a C-k C-k C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y >=20 > and adds an unrequested entry to the kill ring > that the user needs to remove from the kill ring later=2E >=20 > When bound to a short key, it's just >=20 > C-12 C-c c >=20 > and doesn't change the contents of the kill ring=2E What is the use case for an Emacs user to need to copy a line 12 times, an= d is it frequent enough to justify binding the command to a key, and to C-c= key on top of that? Also, let's not forget that Emacs has keyboard macros, and those can be ru= n with a repeat count=2E