GNU bug report logs - #64185
proposal for new function: copy-line

Previous Next

Package: emacs;

Reported by: Zachary Kanfer <zkanfer <at> gmail.com>

Date: Tue, 20 Jun 2023 05:09:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Robert Pluim <rpluim <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: 64185 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>, me <at> eshelyaron.com, zkanfer <at> gmail.com
Subject: bug#64185: proposal for new function: copy-line
Date: Fri, 23 Jun 2023 09:08:56 +0200
>>>>> On Thu, 22 Jun 2023 21:17:51 +0300, Juri Linkov <juri <at> linkov.net> said:

    Juri> diff --git a/etc/NEWS b/etc/NEWS
    Juri> index ca0d602e9ad..aa3b758a815 100644
    Juri> --- a/etc/NEWS
    Juri> +++ b/etc/NEWS
    Juri> @@ -696,7 +696,9 @@ between these modes while the user is inputting a command by hitting
    Juri>  'duplicate-line' duplicates the current line the specified number of times.
    Juri>  'duplicate-dwim' duplicates the region if it is active.  If not, it
    Juri>  works like 'duplicate-line'.  An active rectangular region is
    Juri> -duplicated on its right-hand side.
    Juri> +duplicated on its right-hand side.  The new user option
    Juri> +'duplicate-line-final-position' specifies where to move point
    Juri> +after duplicating the line.

The first thing that springs to mind here is "where on the line is
point placed?". At the beginning, end, same column as when
duplicate-line was invoked? (I know I could just read the code, but
the caffeine hasnʼt kicked in yet :-))

Robert
-- 




This bug report was last modified 1 year and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.