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: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 64185 <at> debbugs.gnu.org, me <at> eshelyaron.com, zkanfer <at> gmail.com
Subject: bug#64185: proposal for new function: copy-line
Date: Thu, 22 Jun 2023 20:45:02 +0300
> From: Juri Linkov <juri <at> linkov.net>
> Cc: zkanfer <at> gmail.com,  64185 <at> debbugs.gnu.org,  me <at> eshelyaron.com
> Date: Thu, 22 Jun 2023 20:27:04 +0300
> 
> > Patches welcome, but if you want to have this in Emacs 29, please
> > hurry up with the patches.
> 
> This is both simple and general allowing to specify any number
> for the new line position counting from the first/last line,
> but only values 0, 1, and -1 are really useful:

Thanks, this LGTM, with one comment:

> +(defcustom duplicate-line-pos 0
> +  "Where to put point after copying the line.

A better name for this would be duplicate-line-final-position or maybe
duplicate-line-point-position.

Also, please mention this variable in NEWS, where duplicate-line is
announced.




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

Previous Next


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