aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-07-04 04:47:05 +0000
committerRichard M. Stallman1997-07-04 04:47:05 +0000
commit85969cb1be0af86030b6245be81fa1cdc5f2e925 (patch)
tree4ff4a088f54dd568bc11a826b1ef8693880255d6
parentd282be1612599c9e7982d197cd77184f2ead5890 (diff)
downloademacs-85969cb1be0af86030b6245be81fa1cdc5f2e925.tar.gz
emacs-85969cb1be0af86030b6245be81fa1cdc5f2e925.zip
(next-line, previous-line): Doc fixes.
(kill-line): Doc fix.
-rw-r--r--lisp/simple.el24
1 files changed, 17 insertions, 7 deletions
diff --git a/lisp/simple.el b/lisp/simple.el
index ac3ad50cecd..fac5987756d 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1137,8 +1137,13 @@ Negative arguments kill lines backward.
1137When calling from a program, nil means \"no arg\", 1137When calling from a program, nil means \"no arg\",
1138a number counts as a prefix arg. 1138a number counts as a prefix arg.
1139 1139
1140If `kill-whole-line' is non-nil, then kill the whole line 1140To kill a whole line, when point is not at the beginning, type \
1141when given no argument at the beginning of a line." 1141\\[beginning-of-line] \\[kill-line] \\[kill-line].
1142
1143If `kill-whole-line' is non-nil, then this command kills the whole line
1144including its terminating newline, when used at the beginning of a line
1145with no argument. As a consequence, you can always kill a whole line
1146by typing \\[beginning-of-line] \\[kill-line]."
1142 (interactive "P") 1147 (interactive "P")
1143 (kill-region (point) 1148 (kill-region (point)
1144 ;; It is better to move point to the other end of the kill 1149 ;; It is better to move point to the other end of the kill
@@ -1806,9 +1811,11 @@ to create a line, and moves the cursor to that line. Otherwise it moves the
1806cursor to the end of the buffer. 1811cursor to the end of the buffer.
1807 1812
1808The command \\[set-goal-column] can be used to create 1813The command \\[set-goal-column] can be used to create
1809a semipermanent goal column to which this command always moves. 1814a semipermanent goal column for this command.
1810Then it does not try to move vertically. This goal column is stored 1815Then instead of trying to move exactly vertically (or as close as possible),
1811in `goal-column', which is nil when there is none. 1816this command moves to the specified goal column (or as close as possible).
1817The goal column is stored in the variable `goal-column', which is nil
1818when there is no goal column.
1812 1819
1813If you are thinking of using this in a Lisp program, consider 1820If you are thinking of using this in a Lisp program, consider
1814using `forward-line' instead. It is usually easier to use 1821using `forward-line' instead. It is usually easier to use
@@ -1835,8 +1842,11 @@ the cursor is positioned after the character in that line which spans this
1835column, or at the end of the line if it is not long enough. 1842column, or at the end of the line if it is not long enough.
1836 1843
1837The command \\[set-goal-column] can be used to create 1844The command \\[set-goal-column] can be used to create
1838a semipermanent goal column to which this command always moves. 1845a semipermanent goal column for this command.
1839Then it does not try to move vertically. 1846Then instead of trying to move exactly vertically (or as close as possible),
1847this command moves to the specified goal column (or as close as possible).
1848The goal column is stored in the variable `goal-column', which is nil
1849when there is no goal column.
1840 1850
1841If you are thinking of using this in a Lisp program, consider using 1851If you are thinking of using this in a Lisp program, consider using
1842`forward-line' with a negative argument instead. It is usually easier 1852`forward-line' with a negative argument instead. It is usually easier