From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Thu, 07 Jul 2022 09:58:23 +0200 Message-ID: <878rp5icbk.fsf@gnus.org> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15117"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 46621@debbugs.gnu.org, Andreas Schwab , Pankaj Jangid To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 07 10:18:58 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 1o9Miw-0003bS-7J for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 10:18:58 +0200 Original-Received: from localhost ([::1]:56366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o9Miv-0004Rp-3c for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Jul 2022 04:18:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53778) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o9MPd-0000c9-Td for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 03:59:01 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o9MPd-0008OI-KU for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 03:59:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o9MPd-0000Sh-Jk for bug-gnu-emacs@gnu.org; Thu, 07 Jul 2022 03:59:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Jul 2022 07:59: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.16571807271753 (code B ref 46621); Thu, 07 Jul 2022 07:59:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 7 Jul 2022 07:58:47 +0000 Original-Received: from localhost ([127.0.0.1]:55671 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9MPG-0000S5-Ug for submit@debbugs.gnu.org; Thu, 07 Jul 2022 03:58:47 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:36210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o9MPE-0000Rr-Rp for 46621@debbugs.gnu.org; Thu, 07 Jul 2022 03:58:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=0b3NU//MuFLLoPKG8tDbmIZMMqXUWPoEgF0S+5tfg+4=; b=KzhZjejtUqg8bq7ydub/g7BImg Bpo6zmEZwr64j6AjZJ057M0nfV5cv9dO0SSvX4TAMA+Ph211R4JL++7FJnlkO8inlf3McOPqMMrwO wSqF+TjhsQwtW1/c+xZJmmReVjKUxIx5SNGeZPvnfldJr0G3HW51HN547z/2YRtwd0vw=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o9MP3-0005pM-Qb; Thu, 07 Jul 2022 09:58:28 +0200 In-Reply-To: <86k08qtxws.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 06 Jul 2022 20:34:19 +0300") Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEX09Nb7++Le3sFj Y1SKiXUGBgK4uJ8tLSVHRjt/f23///+3Y8xXAAAAAWJLR0QKaND0VgAAAAd0SU1FB+YHBwcoAHss DrkAAAGvSURBVDjLdZRNT8JAEIZnkFSOu0B65kOCV4OaeKPCL6AMcFSM0SMayxk1Gn62M7Nttwvy HnbD+7DztW0BRAbBehlr0aoPXUR7IPVbyZGvAAcMsOqhLgZvkiCHZgGIujElYNdiXDyKO5l20QCc fwwpwdcF/8tkC15aRBsQQERJnxhAk+bGIhvvknrIYEQMAPsMoJ3lQE6w5gbrmawD/jELAPsChgrQ gzijCvAn0h86AGf7PZXi5CVg/ZwCgyqQ0DNjxK+1SrBwYAduuv3CTztazBYU4EV54M2N6ApkViCN 5dpAAViR90NQd97yCIBLPb8UYKoAXl0HvKX3Wu4OKmTeNC8cEALw4nqOeetAw4M8FLQPQJ8CwOXv quWmqIAf1nP61Ak28ua2Cu57vWfadqqAftvlBN4DQNd++iHwkhvsMUjdHL9pNWJNp9MHB1ZrBR8x bSovR6+xeqhlenuRTrdUfQwKrmpxCPgW3YnuwQmpzOWI+LHxpjQJRVXLr3+BxDMBcKGk8xKg2xTc xh4UXwYBvxDprQRgMhrd8vZ0N84j5Z8MyMfA73LRG8IJ2RM+2j+QnMAKWUIZ/wAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMi0wNy0wN1QwNzo0MDowMCswMDowMFihqZYAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjItMDctMDdUMDc6NDA6MDArMDA6MDAp/BEqAAAAAElFTkSuQmCC X-Now-Playing: Ripatti's _Planet Mu 25_: "Flowers" 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:236328 Archived-At: Juri Linkov writes: >>> duplicate-line should keep point at the same column. >> >> Ah, yes, that might be nice... > > 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 . -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no