From: Mattias EngdegÄrd Date: Thu, 29 Jun 2023 09:21:53 +0000 (+0200) Subject: ; * lisp/misc.el (duplicate-line-final-position): doc precision X-Git-Tag: emacs-29.1-rc1~95 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=cecbe92d5d9;p=emacs.git ; * lisp/misc.el (duplicate-line-final-position): doc precision --- diff --git a/etc/NEWS b/etc/NEWS index aa3b758a815..9e6f0c16bcd 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -698,7 +698,7 @@ between these modes while the user is inputting a command by hitting works like 'duplicate-line'. An active rectangular region is duplicated on its right-hand side. The new user option 'duplicate-line-final-position' specifies where to move point -after duplicating the line. +after duplicating a line. --- ** Files with the ".eld" extension are now visited in 'lisp-data-mode'. diff --git a/lisp/misc.el b/lisp/misc.el index 898fe9dd168..64f3986ff4c 100644 --- a/lisp/misc.el +++ b/lisp/misc.el @@ -64,7 +64,8 @@ Also see the `duplicate-line' command." (insert string))) (defcustom duplicate-line-final-position 0 - "Where to put point after duplicating the line with `duplicate-line'. + "Where to put point after duplicating a line with `duplicate-line' +or `duplicate-dwim'. When 0, leave point on the original line. When 1, move point to the first new line. When -1, move point to the last new line.