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: Mon, 22 Feb 2021 11:07:58 +0200 Organization: LINKOV.NET Message-ID: <87sg5o8nk9.fsf@mail.linkov.net> 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 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11700"; 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 Mon Feb 22 10:43:04 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 1lE7k8-0002ut-1T for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 10:43:04 +0100 Original-Received: from localhost ([::1]:60444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lE7k7-0007f3-1e for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 22 Feb 2021 04:43:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lE7j7-0007eu-Rr for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 04:42:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44117) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lE7j7-00070Z-Kw for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 04:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lE7j7-0005xU-Ij for bug-gnu-emacs@gnu.org; Mon, 22 Feb 2021 04:42: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: Mon, 22 Feb 2021 09:42: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.161398687922855 (code B ref 46621); Mon, 22 Feb 2021 09:42:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 22 Feb 2021 09:41:19 +0000 Original-Received: from localhost ([127.0.0.1]:55663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE7iR-0005wY-95 for submit@debbugs.gnu.org; Mon, 22 Feb 2021 04:41:19 -0500 Original-Received: from relay5-d.mail.gandi.net ([217.70.183.197]:41059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lE7iP-0005wK-Cc for 46621@debbugs.gnu.org; Mon, 22 Feb 2021 04:41:18 -0500 X-Originating-IP: 91.129.96.116 Original-Received: from mail.gandi.net (m91-129-96-116.cust.tele2.ee [91.129.96.116]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 96BB41C001A; Mon, 22 Feb 2021 09:41:09 +0000 (UTC) In-Reply-To: (Richard Stallman's message of "Mon, 22 Feb 2021 01:23:03 -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:200552 Archived-At: > > It's not realistic to change the meaning of the numeric arg to C-y. > > People already use the current meaning for decades. > > We could inquire of the users to see what they think about the issue. Every once in a while the lack of such fundamental command sparks very long discussions how to reinvent the wheel. Some recent examples: https://stackoverflow.com/questions/88399/how-do-i-duplicate-a-whole-line-in-emacs https://stackoverflow.com/questions/88399/how-do-i-duplicate-a-whole-line-in-emacs?page=2 https://stackoverflow.com/questions/27129147/efficent-way-to-copy-and-paste-a-line https://stackoverflow.com/questions/12132601/duplicating-the-current-line https://emacs.stackexchange.com/questions/22705/quickly-duplicate-line-and-increase-number-for-lots-of-lines https://old.reddit.com/r/emacs/comments/lkyadp/weekly_tipstricketc_thread/gnnniq3/ https://old.reddit.com/r/emacs/comments/jvpccf/weekly_tipstricketc_thread/gcr8h68/ https://old.reddit.com/r/emacs/comments/jwhr6g/batteries_included_with_emacs/gcqdmp9/ with questions like from the last: Why does emacs doesn't have a built-in ergonomic way to duplicate a line? Genuinely curious, seems like something fundamental. Guess it is one of the reasons evil-mode has rise so much. Any new comer will feel disgusted by having to do C-a C-space C-e M-w and more keystrokes to place it The proposed tiny 8-line patch was intended to help people avoid wasting their time on such trivial things.