diff options
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c index b590805ea8a..6f9982eebb2 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -110,10 +110,17 @@ DEFUN ("forward-line", Fforward_line, Sforward_line, 0, 1, "^p", | |||
| 110 | Precisely, if point is on line I, move to the start of line I + N | 110 | Precisely, if point is on line I, move to the start of line I + N |
| 111 | \("start of line" in the logical order). | 111 | \("start of line" in the logical order). |
| 112 | If there isn't room, go as far as possible (no error). | 112 | If there isn't room, go as far as possible (no error). |
| 113 | |||
| 113 | Returns the count of lines left to move. If moving forward, | 114 | Returns the count of lines left to move. If moving forward, |
| 114 | that is N - number of lines moved; if backward, N + number moved. | 115 | that is N minus number of lines moved; if backward, N plus number |
| 115 | With positive N, a non-empty line at the end counts as one line | 116 | moved. |
| 116 | successfully moved (for the return value). */) | 117 | |
| 118 | Exception: With positive N, a non-empty line at the end of the | ||
| 119 | buffer, or of its accessible portion, counts as one line | ||
| 120 | successfully moved (for the return value). This means that the | ||
| 121 | function will move point to the end of such a line and will count | ||
| 122 | it as a line moved across, even though there is no next line to | ||
| 123 | go to its beginning. */) | ||
| 117 | (Lisp_Object n) | 124 | (Lisp_Object n) |
| 118 | { | 125 | { |
| 119 | ptrdiff_t opoint = PT, pos, pos_byte, shortage, count; | 126 | ptrdiff_t opoint = PT, pos, pos_byte, shortage, count; |