>> +(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. Unless someone has an idea for a shorter name that is still descriptive, here is the final patch for emacs-29: