From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64185: proposal for new function: copy-line Date: Thu, 22 Jun 2023 19:25:19 +0300 Message-ID: <83mt0r31n4.fsf@gnu.org> References: <837cry73z9.fsf@gnu.org> <838rcc3wzs.fsf@gnu.org> <86ttv0ynyk.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25902"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64185@debbugs.gnu.org, 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 Thu Jun 22 18:27:29 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 1qCN9d-0006S1-8E for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 18:27:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCN8X-0005XR-6a; Thu, 22 Jun 2023 12:26:21 -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 1qCN8F-0005LF-C7 for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:26:05 -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 1qCN8E-0002J9-Re for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCN8E-0004HT-Gz for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 16:26: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.168745112316397 (code B ref 64185); Thu, 22 Jun 2023 16:26:02 +0000 Original-Received: (at 64185) by debbugs.gnu.org; 22 Jun 2023 16:25:23 +0000 Original-Received: from localhost ([127.0.0.1]:36571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCN7b-0004GO-Ir for submit@debbugs.gnu.org; Thu, 22 Jun 2023 12:25:23 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57732) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCN7Z-0004Fz-2p for 64185@debbugs.gnu.org; Thu, 22 Jun 2023 12:25:22 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCN7T-0002Eq-6y; Thu, 22 Jun 2023 12:25:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=ufpo3lPy19jpqMdQqdHWg8um4XHkMtC61cTYEfBJ7D8=; b=rzk7w2u9ouFC yLopi7u6Bb5e3poTxQnd4gNxsxWg9aett9bLeKFYLhH4hxEJwAofD13jyEF1h3mDca/6cfc3BDLiX uR920X/xEejVb8uI4P6cvALVzL/tm7qu878ob/BT6rkZkNkNvBSZxu8zYsHvY5uigKo9fB4Jymblz hv1+x4XqBPlHnkqKeyhyiw9d+iRgzoFhtqfZcX6Sto+JaCR6EY7G/632pywT8KHquRGoO7iMkJyQP JORKCscqfqy0Sb6LDs8V2TiHypRw6CypZ1UevAdNVzV9uLTyFRa9zxoS7LN1Ij8OcmZ/r1uyuqB7i AIE5esgyAfAi1kPD1HMtUg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qCN7N-00052p-6D; Thu, 22 Jun 2023 12:25:14 -0400 In-Reply-To: <86ttv0ynyk.fsf@mail.linkov.net> (message from Juri Linkov on Thu, 22 Jun 2023 09:57:31 +0300) 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:263891 Archived-At: > From: Juri Linkov > Cc: Zachary Kanfer , 64185@debbugs.gnu.org, > me@eshelyaron.com > Date: Thu, 22 Jun 2023 09:57:31 +0300 > > > We could have the prefix arg of - (i.e., "C-u - M-x ...") produce that > > behavior from duplicate-line. > > The problem is how to define this behavior with the prefix arg C-u in case > when a prefix numeric argument is used. > > > Or we could have a user option to do that regardless of the argument, > > but then we should decide on which of the N new lines to put point: > > the first one copied or the last one. > > A user option looks preferable. In case of a prefix numeric argument, > it also makes sense to have 3 choices: > > 1. leave point on the old line > 2. move point to the first new line > 3. move point to the last new line Patches welcome, but if you want to have this in Emacs 29, please hurry up with the patches.