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: Thu, 07 Jul 2022 19:45:23 +0300 Organization: LINKOV.NET Message-ID: <86o7y1hs4c.fsf@mail.linkov.net> References: <87tuq99ova.fsf@mail.linkov.net> <07496A25-CD5D-46E6-8F1C-7BD29143F3C8@acm.org> <87o7yoyj38.fsf@gnus.org> <449B2624-107D-4083-AE74-989F39C93936@acm.org> <871qvkvft6.fsf@gnus.org> <181B4CC3-B934-45AE-A7E8-9AF2B70C302E@acm.org> <87bkum1eyc.fsf@gnus.org> <861qvikk4l.fsf@mail.linkov.net> <87zgi5uyr1.fsf@gnus.org> <86o7yl9oc4.fsf@mail.linkov.net> <878rppuo9j.fsf@gnus.org> <87wnd8r4v2.fsf@codeisgreat.org> <87y1xnzuog.fsf@gnus.org> <87a6a3ree0.fsf@codeisgreat.org> <87wnd7ycl1.fsf@gnus.org> <86k08qtxws.fsf@mail.linkov.net> <878rp5icbk.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="9927"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 46621@debbugs.gnu.org, Andreas Schwab , Pankaj Jangid To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 18:51:34 2022 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 1o9Uiz-0002Mj-FS for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 18:51:33 +0200 Original-Received: from localhost ([::1]:38070 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Uiy-0000WK-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 12:51:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9UhY-0007T1-E8 for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 12:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35610) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9UhX-0002Ru-3F for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 12:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9UhX-0002IM-1E for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 12:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2022 16:50:02 +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.16572125698752 (code B ref 46621); Thu, 07 Jul 2022 16:50:02 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 7 Jul 2022 16:49:29 +0000 Original-Received: from localhost ([127.0.0.1]:57736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9Ugz-0002H5-36 for submit@debbugs.gnu.org; Thu, 07 Jul 2022 12:49:29 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:42175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9Ugw-0002Gq-CB for 46621@debbugs.gnu.org; Thu, 07 Jul 2022 12:49:27 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 97246FF805; Thu, 7 Jul 2022 16:49:17 +0000 (UTC) In-Reply-To: <878rp5icbk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 07 Jul 2022 09:58:23 +0200") 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:236393 Archived-At: >> Here is the patch that does this. So if you have >> >> foo 1 bar >> >> and need to get >> >> foo 1 bar >> foo 2 bar >> foo 3 bar >> foo 4 bar >> foo 5 bar >> >> it requires typing the minimal number of keys - >> move point to the column with 1, and type: >> >> C-u 2 3 4 5 > > I think I've changed my mind about moving point -- leaving it where it > is makes sense if you've bound `duplicate-line' to a single key, and > then you'd say, for instance, `M-o' `M-o' `M-o' `M-o'. And then you'd > not want point to move, but be left where it is, so you can start > editing by hitting . This is optimized for a rare workflow. Why would anyone want to type a long key sequence `M-o M-o M-o M-o ... ' when it's much easier to type just `M-4 M-o' and immediately start editing.