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: Sat, 20 Feb 2021 20:28:20 +0200 Organization: LINKOV.NET Message-ID: <87o8ge8ugr.fsf@mail.linkov.net> References: <87tuq99ova.fsf@mail.linkov.net> <87y2fkrypp.fsf@gnus.org> <87ft1qq4b6.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28444"; 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, Daniel =?UTF-8?Q?Mart=C3=ADn?= To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 20 19:37:36 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 1lDX8K-0007Ht-BE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Feb 2021 19:37:36 +0100 Original-Received: from localhost ([::1]:39378 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDX8J-0005Dr-7a for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Feb 2021 13:37:35 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDX7m-0005Da-6I for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2021 13:37:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41283) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDX7l-0004Di-Vb for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2021 13:37:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDX7l-0000XN-TW for bug-gnu-emacs@gnu.org; Sat, 20 Feb 2021 13:37: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: Sat, 20 Feb 2021 18:37: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.16138461732001 (code B ref 46621); Sat, 20 Feb 2021 18:37:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 20 Feb 2021 18:36:13 +0000 Original-Received: from localhost ([127.0.0.1]:52829 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDX6y-0000WD-K9 for submit@debbugs.gnu.org; Sat, 20 Feb 2021 13:36:12 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:59507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDX6v-0000Vy-9O for 46621@debbugs.gnu.org; Sat, 20 Feb 2021 13:36:10 -0500 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 30A1F100004; Sat, 20 Feb 2021 18:36:00 +0000 (UTC) In-Reply-To: <87ft1qq4b6.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 20 Feb 2021 14:03:41 +0100") 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:200453 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. > > Right; makes sense. > >> This has been a hot topic in Q&A sites: >> https://stackoverflow.com/questions/88399/how-do-i-duplicate-a-whole-line-in-emacs > > OK, so there seems to be some general demand for this command, so I > think we should go ahead and add it, unless somebody strongly objects. Also tired of reading endless discussions on Q&A sites about reinventing such fundamental feature as duplicating a line. >> Also, why not name the command `duplicate-line'? I think it's a more >> descriptive name and more discoverable via apropos (along with >> `delete-duplicate-lines', for example). > > That does seem like an even better name for the command. What do you > think, Juri? `duplicate-line' is a better name, but the problem is that is based on the existing command `copy-from-above-command'. Should they share the same name prefix? Please decide, I have no opinion on this. :-)