aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2023-06-29 11:21:53 +0200
committerMattias EngdegÄrd2023-06-29 11:24:47 +0200
commitcecbe92d5d99c427bcbeafc6ee2e53d6aac334e8 (patch)
tree6becc22850a3aea2729ec023ea48072ba8c041db
parent042f0d6a14cd99eb9d33cfccc6239534bc40e712 (diff)
downloademacs-cecbe92d5d99c427bcbeafc6ee2e53d6aac334e8.tar.gz
emacs-cecbe92d5d99c427bcbeafc6ee2e53d6aac334e8.zip
; * lisp/misc.el (duplicate-line-final-position): doc precision
-rw-r--r--etc/NEWS2
-rw-r--r--lisp/misc.el3
2 files changed, 3 insertions, 2 deletions
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
698works like 'duplicate-line'. An active rectangular region is 698works like 'duplicate-line'. An active rectangular region is
699duplicated on its right-hand side. The new user option 699duplicated on its right-hand side. The new user option
700'duplicate-line-final-position' specifies where to move point 700'duplicate-line-final-position' specifies where to move point
701after duplicating the line. 701after duplicating a line.
702 702
703--- 703---
704** Files with the ".eld" extension are now visited in 'lisp-data-mode'. 704** 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."
64 (insert string))) 64 (insert string)))
65 65
66(defcustom duplicate-line-final-position 0 66(defcustom duplicate-line-final-position 0
67 "Where to put point after duplicating the line with `duplicate-line'. 67 "Where to put point after duplicating a line with `duplicate-line'
68or `duplicate-dwim'.
68When 0, leave point on the original line. 69When 0, leave point on the original line.
69When 1, move point to the first new line. 70When 1, move point to the first new line.
70When -1, move point to the last new line. 71When -1, move point to the last new line.