Subject: bug#64185: proposal for new function: copy-line

From: Mattias Engdegård <[email-masked]>
Date: Fri, 23 Jun 2023 12:50:52 +0200

23 juni 2023 kl. 12.28 skrev Eli Zaretskii <[email-masked]>:

> This is a new feature in Emacs 29, so adding customization
> opportunities to it that allow fine control of its behavior is fine at
> this stage.  Of course, if the proposal is controversial, we shouldn't
> rush.  My impression till now was that it wasn't controversial.  If
> the only issue is better documentation and/or whether the value should
> be a number or a symbol, then I see no problem with installing this on
> the release branch.

The new setting would be quite incomplete if it doesn't apply to the more general and useful duplicate-dwim as well. I can help with that but obviously want it done properly.

It's not as straightforward as when duplicating lines because the region would need to move, and it's a lot more complicated for rectangles. This may take some time to get right.

In particular, the full generality of allowing an arbitrary number to be specified adds quite some complexity here, and it's all useless gold-plating -- nobody will ever set that knob to 3, say.