From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#46621: Copy line Date: Sat, 25 Jun 2022 18:35:17 +0200 Message-ID: <1214B95A-A75B-4840-AD68-E962D3610B47@acm.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> <4700ED98-0A31-4E78-9626-5F3952351EA8@acm.org> <87czezwgn8.fsf@gnus.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4761"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46621@debbugs.gnu.org, Simen =?UTF-8?Q?Heggest=C3=B8yl?= , Juri Linkov To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 25 18:36:11 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 1o58lX-000115-6T for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 18:36:11 +0200 Original-Received: from localhost ([::1]:50372 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o58lV-0007yq-PU for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 25 Jun 2022 12:36:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o58lN-0007ut-Vj for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:36:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52202) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o58lN-0003Yy-NZ for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:36:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o58lN-0005eJ-LM for bug-gnu-emacs@gnu.org; Sat, 25 Jun 2022 12:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 25 Jun 2022 16:36: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.165617493221671 (code B ref 46621); Sat, 25 Jun 2022 16:36:01 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 25 Jun 2022 16:35:32 +0000 Original-Received: from localhost ([127.0.0.1]:46099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o58ku-0005dS-2Y for submit@debbugs.gnu.org; Sat, 25 Jun 2022 12:35:32 -0400 Original-Received: from mail1456c50.megamailservers.eu ([91.136.14.56]:32904 helo=mail266c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o58kq-0005d8-1Q for 46621@debbugs.gnu.org; Sat, 25 Jun 2022 12:35:31 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1656174921; bh=JlGguzh2iPIdAdmYVl4fLB0yA8QRXJ27ysNCcCPRzqI=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=a0+pm0/MNRp56uzvqUrDxn9kf/PXcLj2jymeFpqGvdB2Gvy2+ZxFMsn2UTSTQvaL5 DPi9Z0R4uQS/lgqTnajmBDE9KvSjqWZdf1P6JjnsE0myMxqY2u7OaXUa7w2TVeaAg2 rz3T49bVUilpARjPxSHOgY97GiH7jIItYn3egfgA= Feedback-ID: mattiase@acm.or Original-Received: from smtpclient.apple (c188-150-171-71.bredband.tele2.se [188.150.171.71]) (authenticated bits=0) by mail266c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 25PGZI9m045431; Sat, 25 Jun 2022 16:35:19 +0000 In-Reply-To: <87czezwgn8.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Origin-Country: SE 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:235282 Archived-At: 23 juni 2022 kl. 17.20 skrev Lars Ingebrigtsen : > I think that means that it might make sense to keep the command as is > (point movement wise). I.e., if we move point to the duplicated line, > then hitting `H-y' a whole bunch of times would leave point at the = final > line. Right. Again, it is slightly more consistent to have it duplicate = "below" than "above" so I weakly favour this way of working, but don't = take my word for it -- try it out in anger. > If we decide to move to the duplicated line, but keep the same column = -- > then that makes no sense in a region-sensitive context at all. If you > mark a word and hit `H-y', then there's no way to keep the "current > column". That's unavoidable because Emacs's region concept prevents the cursor = from moving independently of the selection. (Same goes for most other = modern editors although they use a slightly different selection = paradigm.) In no way does this diminish the utility of the command in either of its = modes of usage. > It makes no sense to mash up these two totally different > things into one command, and people do complain about commands that = make > no sense. But the semantics do make sense -- let's not look for problems that = don't exist. It's like `upcase-dwim`: without an active region it acts = on the current word, which is the most practical unit for that = operation. If it helps, call the new command `duplicate-dwim` or just `duplicate`. = The user who only uses it to duplicate lines is unlikely to be disturbed = by its other ways of functioning.