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 08:08:07 +0300 Message-ID: <838rcc3wzs.fsf@gnu.org> References: <837cry73z9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21469"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64185@debbugs.gnu.org, me@eshelyaron.com To: Zachary Kanfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 07: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 1qCCZG-0005PZ-Cn for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 07:09:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCCZ6-0006Cq-KT; Thu, 22 Jun 2023 01:09:04 -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 1qCCZ5-0006CO-1z for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 01:09:03 -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 1qCCZ4-0007LC-NN for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 01:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCCZ4-0008TF-Hf for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 01:09: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 05: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.168741048632427 (code B ref 64185); Thu, 22 Jun 2023 05:09:02 +0000 Original-Received: (at 64185) by debbugs.gnu.org; 22 Jun 2023 05:08:06 +0000 Original-Received: from localhost ([127.0.0.1]:34577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCCYA-0008Qw-0a for submit@debbugs.gnu.org; Thu, 22 Jun 2023 01:08:06 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37118) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCCY8-0008QM-9u for 64185@debbugs.gnu.org; Thu, 22 Jun 2023 01:08:05 -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 1qCCY1-00070K-U2; Thu, 22 Jun 2023 01:07:58 -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=TVNde3GR9VLaF/siW611zhl3vJXhzovXx0/rsmy6xsg=; b=qzsuk+1hAivt To5egm/pjQgexaWFoEDuQLTGz2GnKLX4MWJ9pT4AGvzwQX11bTMliP6LsRCCEW2WlF424LxtgJFdV dgTnWjh1AITZb3xcabvR9jo+WuXtXRddM5iKT3HgX+AWF5dUiBSWTmYoGltBgmizs2ifMgdMIPDzc TMRFbT67b5aX7EPbKr7Xd9kvNNpcFDOUKk+fXzYW2IBkaZ6vJglDgTjHYC0XMVgPP3Hpq3QcmXJ8r 5BnYNrQDeFv8xey6X8bS7T7vtKKq1i9upk2kwY80PYCJ8UlfNhE646wpfpH266XCFh2MnqyE6zjHG 5UV2RWgRwtgGOi9Zc5ceGQ==; 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 1qCCY1-0001bG-Av; Thu, 22 Jun 2023 01:07:57 -0400 In-Reply-To: (message from Zachary Kanfer on Wed, 21 Jun 2023 23:33:15 -0400) 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:263856 Archived-At: > From: Zachary Kanfer > Date: Wed, 21 Jun 2023 23:33:15 -0400 > Cc: Eshel Yaron , 64185@debbugs.gnu.org > > I do think it's more useful to put point on the second line; I almost always find myself wanting to edit the > "new" line, not the old one. Yes, there isn't really a new vs old line, but I write the first thing I want to see > first, then want to duplicate it to make a changed second line. We could have the prefix arg of - (i.e., "C-u - M-x ...") produce that behavior from duplicate-line. 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. > I suspect that although it hasn't been in a released version yet, it's slightly late to have a discussion > about changing the behavior to leave point on the second line instead of the first. Not the default behavior, but we could have it optionally behave differently.