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#64185: proposal for new function: copy-line Date: Fri, 23 Jun 2023 11:07:58 +0200 Message-ID: <4C83E2DA-FE5F-4191-88CD-7E70008C9892@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) 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="4929"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64185@debbugs.gnu.org, Eli Zaretskii , me@eshelyaron.com, zkanfer@gmail.com To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 23 11:09:14 2023 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 1qCcn3-00011l-RY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jun 2023 11:09:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCcmt-0006uI-Vg; Fri, 23 Jun 2023 05:09:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCcms-0006tv-KO for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 05:09:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCcms-0004Rk-AC for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 05:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCcms-0005Sg-5n for bug-gnu-emacs@gnu.org; Fri, 23 Jun 2023 05:09:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jun 2023 09:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64185 X-GNU-PR-Package: emacs Original-Received: via spool by 64185-submit@debbugs.gnu.org id=B64185.168751128720927 (code B ref 64185); Fri, 23 Jun 2023 09:09:02 +0000 Original-Received: (at 64185) by debbugs.gnu.org; 23 Jun 2023 09:08:07 +0000 Original-Received: from localhost ([127.0.0.1]:37678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCclz-0005RT-Ep for submit@debbugs.gnu.org; Fri, 23 Jun 2023 05:08:07 -0400 Original-Received: from mail-lj1-f177.google.com ([209.85.208.177]:57450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCclx-0005Qr-Nt for 64185@debbugs.gnu.org; Fri, 23 Jun 2023 05:08:06 -0400 Original-Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2b4619ef079so6882211fa.2 for <64185@debbugs.gnu.org>; Fri, 23 Jun 2023 02:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687511280; x=1690103280; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=x2n9pqSP8P5PlE035NmINIbyVJk3V932670UMWOsqmY=; b=E3cwmH7bZtsG+HrGuIflJkFVEUrJ21GEUWLyB8Kj4+7+tluIUYh1zAJFlsWr6fCLxn sVc2Tou55C+crRTyAuaYChrUez1MG0U+aDfrudpHPlz6nPOev/98eFIxSjmTjRjT4yUu 5TRV9kuH1hVYpqSja8xVIcIB7odWUfWIHQUfBzLeGMj3syWH9MTX+qsNV1hQFuFjVeOB 3PwUS727M3zDB9i4Df7zTN6a0QRkwa93NuY5i5Ste8gUETGCqgUTV3e0g8v97USYwZ04 SBh7RarV5xt3GGxdrd46eWzgnJmrLsvw573f8UMlQp0SJd7DwzEqDbDt3xBl0ooqiy+W wPcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687511280; x=1690103280; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=x2n9pqSP8P5PlE035NmINIbyVJk3V932670UMWOsqmY=; b=lsQUpBeibj1NVNyqDbRQD9vP2/1/7w6JmDJAe1wb5kCVNULZ4BzWmoPO1MVYnYlClZ uWMq81hC+XIJt+HmkoZIapckPsIm7d3o/cGoyI9gx9QuS66ehVcLCpvQ4rFeO/+bl1w6 GE2+QsfUp49OWk//So4oO3C7jurpfm0cYYc7HOZaxJRsifjtcMuOtr1AkFml671D0ual KvwKzzHi5xiMjzHuggDkAt0qYmZN2QATeVRxgTqURbIXHV0n9Fd6WOIh8ijg6HrbgMLO IC8y+a88z+9ARJ+TsDIIumkq9qVSAxQxYlRhActUoZA06xQkILrPk1UNqQrTTocMeweM NuOA== X-Gm-Message-State: AC+VfDzG0hyWXYzUVlDGEI6h+GF9ofxYNZYTtRdeCT1oxIBv7rEpu3uf LT1yWKz1rQJVGu4YB/WDUeg= X-Google-Smtp-Source: ACHHUZ45LJ8cqGG06H9+QKc3PJ4doA8GRiKsCZiMHAotNMISohVK1Qrf0nkc79vgdQ4/KnfmsWNQ1g== X-Received: by 2002:a2e:b04c:0:b0:2b4:7d01:f16f with SMTP id d12-20020a2eb04c000000b002b47d01f16fmr5761929ljl.29.1687511279320; Fri, 23 Jun 2023 02:07:59 -0700 (PDT) Original-Received: from smtpclient.apple (c188-150-165-235.bredband.tele2.se. [188.150.165.235]) by smtp.gmail.com with ESMTPSA id e17-20020a2e9851000000b002b331e241edsm1660649ljj.133.2023.06.23.02.07.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Jun 2023 02:07:58 -0700 (PDT) X-Mailer: Apple Mail (2.3654.120.0.1.15) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:263940 Archived-At: > 'duplicate-dwim' duplicates the region if it is active. If not, it > works like 'duplicate-line'. An active rectangular region is > -duplicated on its right-hand side. > +duplicated on its right-hand side. The new user option > +'duplicate-line-final-position' specifies where to move point > +after duplicating the line. This makes it unclear to what extent the variable affects = `duplicate-dwim`. (For some reason it only does so when the region is = inactive, which doesn't seem right.) And I agree that allowing any integer as value isn't necessary the best = choice here. It's a false flexibility; nobody will ever set it to = something other than 0, 1 or -1. Symbols would probably be better, for = several reasons. Finally, it's a bit surprising that this is even discussed for inclusion = in Emacs 29 at this stage, given the raw state of the design. What about = we do a proper job on master instead, instead of rushing a half-baked = new feature into a branch that is already deep into pre-release?