diff options
| author | Richard M. Stallman | 1997-07-04 04:47:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-04 04:47:05 +0000 |
| commit | 85969cb1be0af86030b6245be81fa1cdc5f2e925 (patch) | |
| tree | 4ff4a088f54dd568bc11a826b1ef8693880255d6 | |
| parent | d282be1612599c9e7982d197cd77184f2ead5890 (diff) | |
| download | emacs-85969cb1be0af86030b6245be81fa1cdc5f2e925.tar.gz emacs-85969cb1be0af86030b6245be81fa1cdc5f2e925.zip | |
(next-line, previous-line): Doc fixes.
(kill-line): Doc fix.
| -rw-r--r-- | lisp/simple.el | 24 |
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. | |||
| 1137 | When calling from a program, nil means \"no arg\", | 1137 | When calling from a program, nil means \"no arg\", |
| 1138 | a number counts as a prefix arg. | 1138 | a number counts as a prefix arg. |
| 1139 | 1139 | ||
| 1140 | If `kill-whole-line' is non-nil, then kill the whole line | 1140 | To kill a whole line, when point is not at the beginning, type \ |
| 1141 | when given no argument at the beginning of a line." | 1141 | \\[beginning-of-line] \\[kill-line] \\[kill-line]. |
| 1142 | |||
| 1143 | If `kill-whole-line' is non-nil, then this command kills the whole line | ||
| 1144 | including its terminating newline, when used at the beginning of a line | ||
| 1145 | with no argument. As a consequence, you can always kill a whole line | ||
| 1146 | by 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 | |||
| 1806 | cursor to the end of the buffer. | 1811 | cursor to the end of the buffer. |
| 1807 | 1812 | ||
| 1808 | The command \\[set-goal-column] can be used to create | 1813 | The command \\[set-goal-column] can be used to create |
| 1809 | a semipermanent goal column to which this command always moves. | 1814 | a semipermanent goal column for this command. |
| 1810 | Then it does not try to move vertically. This goal column is stored | 1815 | Then instead of trying to move exactly vertically (or as close as possible), |
| 1811 | in `goal-column', which is nil when there is none. | 1816 | this command moves to the specified goal column (or as close as possible). |
| 1817 | The goal column is stored in the variable `goal-column', which is nil | ||
| 1818 | when there is no goal column. | ||
| 1812 | 1819 | ||
| 1813 | If you are thinking of using this in a Lisp program, consider | 1820 | If you are thinking of using this in a Lisp program, consider |
| 1814 | using `forward-line' instead. It is usually easier to use | 1821 | using `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 | |||
| 1835 | column, or at the end of the line if it is not long enough. | 1842 | column, or at the end of the line if it is not long enough. |
| 1836 | 1843 | ||
| 1837 | The command \\[set-goal-column] can be used to create | 1844 | The command \\[set-goal-column] can be used to create |
| 1838 | a semipermanent goal column to which this command always moves. | 1845 | a semipermanent goal column for this command. |
| 1839 | Then it does not try to move vertically. | 1846 | Then instead of trying to move exactly vertically (or as close as possible), |
| 1847 | this command moves to the specified goal column (or as close as possible). | ||
| 1848 | The goal column is stored in the variable `goal-column', which is nil | ||
| 1849 | when there is no goal column. | ||
| 1840 | 1850 | ||
| 1841 | If you are thinking of using this in a Lisp program, consider using | 1851 | If 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 |