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 22:37:28 +0200 Organization: LINKOV.NET Message-ID: <87zgzxi33r.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> <189946C1-8CC9-4F7E-BAE6-FC19D2377D39@gnu.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="7517"; 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, rms@gnu.org, mardani29@yahoo.es To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 21 22:14:18 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 1lDw3V-0001pN-Ng for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 22:14:17 +0100 Original-Received: from localhost ([::1]:36376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDw3U-0004gt-6d for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 16:14:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49310) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDw3G-0004gY-FI for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 16:14:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43520) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDw3G-0005Yw-8P for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 16:14:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lDw3G-0000Z8-3c for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 16:14:02 -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 21:14: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-Cc: 46621@debbugs.gnu.org, larsi@gnus.org, bug-gnu-emacs@gnu.org, Richard Stallman , mardani29@yahoo.es Original-Received: via spool by submit@debbugs.gnu.org id=B.16139420372156 (code B ref -1); Sun, 21 Feb 2021 21:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2021 21:13:57 +0000 Original-Received: from localhost ([127.0.0.1]:55066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDw3A-0000Yc-PY for submit@debbugs.gnu.org; Sun, 21 Feb 2021 16:13:57 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37984) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lDw37-0000YM-4L for submit@debbugs.gnu.org; Sun, 21 Feb 2021 16:13:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDw36-0004ew-R4 for bug-gnu-emacs@gnu.org; Sun, 21 Feb 2021 16:13:52 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:37715) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDw34-0005RK-5a; Sun, 21 Feb 2021 16:13:52 -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 relay8-d.mail.gandi.net (Postfix) with ESMTPSA id DEE451BF204; Sun, 21 Feb 2021 21:13:42 +0000 (UTC) In-Reply-To: <189946C1-8CC9-4F7E-BAE6-FC19D2377D39@gnu.org> (Eli Zaretskii's message of "Sun, 21 Feb 2021 12:41:47 +0200") Received-SPF: pass client-ip=217.70.183.201; envelope-from=juri@linkov.net; helo=relay8-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:200528 Archived-At: >> > 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. > > What is the use case for an Emacs user to need to copy a line 12 > times, and is it frequent enough Yes, it is frequently used, as these Q&A sites indicate. > to justify binding the command to a key, and to C-c key on top > of that? ISTR, 'C-c letter' keys are reserved for users, so users can bind the command to 'C-c c' or any other short key. But I can't prove if such convention of 'C-c letter' for user keys really exists, I can't find it in the manual. Or it could be bound to some short key sequence by default. Even without a keybinding the key sequence is very short: M-10 M-x dup RET > Also, let's not forget that Emacs has keyboard macros, and those can > be run with a repeat count. This is how long it takes with keyboard macros: C-a C-k C-k C-x ( C-y C-x ) C-10 C-x e