From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Sun, 21 Feb 2021 10:54:24 +0200 Organization: LINKOV.NET Message-ID: <87im6lls1r.fsf@mail.linkov.net> References: <87tuq99ova.fsf@mail.linkov.net> <87y2fkrypp.fsf@gnus.org> <87ft1qq4b6.fsf@gnus.org> <87o8ge8ugr.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33785"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 46621@debbugs.gnu.org, larsi@gnus.org, mardani29@yahoo.es To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 21 09:57:09 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 1lDkY9-0008gz-1r for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 09:57:09 +0100 Original-Received: from localhost ([::1]:56710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDkY7-00019M-Vs for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 03:57:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDkY2-000194-2p for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 03:57:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41945) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDkY1-0007aI-Rk for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 03:57:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDkY1-0000SN-Pd for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 03:57:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 21 Feb 2021 08:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46621 X-GNU-PR-Package: emacs Original-Received: via spool by 46621-submit@debbugs.gnu.org id=B46621.16138977641668 (code B ref 46621); Sun, 21 Feb 2021 08:57:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 21 Feb 2021 08:56:04 +0000 Original-Received: from localhost ([127.0.0.1]:53491 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDkX6-0000Qq-0q for submit@debbugs.gnu.org; Sun, 21 Feb 2021 03:56:04 -0500 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:51927) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDkX2-0000QK-Vc for 46621@debbugs.gnu.org; Sun, 21 Feb 2021 03:56:02 -0500 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 41C2F200007; Sun, 21 Feb 2021 08:55:52 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Sun, 21 Feb 2021 01:21:10 -0500") 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:200480 Archived-At: > > >> 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. I see the proposed new command may be useful in that scenario. > > Once in a while I want to do that. It is easy: C-a C-k C-k, > they C-y as many times as needed. Let's compare these two solutions. Trying to copy 10 lines: 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 and adds an unrequested entry to the kill ring that the user needs to remove from the kill ring later. When bound to a short key, it's just C-12 C-c c and doesn't change the contents of the kill ring. > Instead of a command to duplicate the current line repeatedly, > how about a command to yank the current kill repeatedly? > That would be useful in a much broader range of situations. > > I wonder if the current meaning of the numeric argument to C-y (reach > back in the kill ring) is actually useful. Would it be better for > it to repeat the yank in this way? It's not realistic to change the meaning of the numeric arg to C-y. People already use the current meaning for decades.