aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmds.c')
-rw-r--r--src/cmds.c13
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",
110Precisely, if point is on line I, move to the start of line I + N 110Precisely, 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).
112If there isn't room, go as far as possible (no error). 112If there isn't room, go as far as possible (no error).
113
113Returns the count of lines left to move. If moving forward, 114Returns the count of lines left to move. If moving forward,
114that is N - number of lines moved; if backward, N + number moved. 115that is N minus number of lines moved; if backward, N plus number
115With positive N, a non-empty line at the end counts as one line 116moved.
116successfully moved (for the return value). */) 117
118Exception: With positive N, a non-empty line at the end of the
119buffer, or of its accessible portion, counts as one line
120successfully moved (for the return value). This means that the
121function will move point to the end of such a line and will count
122it as a line moved across, even though there is no next line to
123go 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;