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: Sun, 19 Jun 2022 17:20:26 +0200 Message-ID: <449B2624-107D-4083-AE74-989F39C93936@acm.org> References: <87tuq99ova.fsf@mail.linkov.net> <07496A25-CD5D-46E6-8F1C-7BD29143F3C8@acm.org> <87o7yoyj38.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="39417"; 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 Sun Jun 19 17:21:13 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 1o2wjh-000A2x-Ah for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 17:21:13 +0200 Original-Received: from localhost ([::1]:53306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2wjf-0005T3-Cg for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 11:21:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45858) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2wjX-0005Sv-10 for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 11:21:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2wjW-0001eF-OD for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 11:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2wjW-0000xB-J5 for bug-gnu-emacs@gnu.org; Sun, 19 Jun 2022 11:21:02 -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: Sun, 19 Jun 2022 15:21: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.16556520483624 (code B ref 46621); Sun, 19 Jun 2022 15:21:02 +0000 Original-Received: (at 46621) by debbugs.gnu.org; 19 Jun 2022 15:20:48 +0000 Original-Received: from localhost ([127.0.0.1]:52861 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2wjG-0000wL-UX for submit@debbugs.gnu.org; Sun, 19 Jun 2022 11:20:47 -0400 Original-Received: from mail1452c50.megamailservers.eu ([91.136.14.52]:60012 helo=mail266c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2wj5-0000vy-HV for 46621@debbugs.gnu.org; Sun, 19 Jun 2022 11:20:45 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1655652028; bh=JtrHwnG5vamkbRLdPsB+BCbu5+C5Hhx5zMBYZw603s8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=lxNvQ3NJm5N3XIgOUDxPNFQKIwQIhu/d9FXMPvtpDRFwCFFHV1sIODSi6f3CRg8sF eDn2CajTIsxs3OixuUPnGffAz4njAqtVIn68TeTc5Np3rHsXrpx+O/JCyrD0ypTnzd YNAuEEYYrXrCLNP5ujQ7fYQAzpgmQb0yrE1mr2Vk= 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 25JFKQRD115406; Sun, 19 Jun 2022 15:20:27 +0000 In-Reply-To: <87o7yoyj38.fsf@gnus.org> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-CTCH-RefID: str=0001.0A782F24.62AF3EBC.0086, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 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:234801 Archived-At: 19 juni 2022 kl. 13.43 skrev Lars Ingebrigtsen : > Simen proposed something quite similar (added to the CCs), and my only > objection was that the semantics of the simpler command is quite > clear -- it always creates a new line, even if we're at a final line = in > a buffer without a newline. Actually shouldn't duplicating such a line add a newline + a copy of the = current line with no terminal newline? Right now the copy is always = newline-terminated even if the original wasn't, which seems a bit = inconsistent. What do you think? > When dealing with regions, it's not quite > clear what the semantics should be in those corner cases (i.e., = regions > that doesn't end with a newline)... Not much of a edge case, is it? If you select "bon" and duplicate you = end up with "bonbon", as promised. Region-sensitive commands are useful since they multiplex functionality = on the same keys without added cognitive load. (It's high time we = rebound M-u to upcase-dwim etc.)