comparison src/cmds.c @ 108904:2bc8bdaafa9a

Merge from mainline.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Mon, 07 Jun 2010 22:49:32 +0000
parents c4f9f87f04a2
children d8144fe7f3f8
comparison
equal deleted inserted replaced
108902:1f795f817d05 108904:2bc8bdaafa9a
60 doc: /* Move point N characters forward (backward if N is negative). 60 doc: /* Move point N characters forward (backward if N is negative).
61 On reaching end or beginning of buffer, stop and signal error. 61 On reaching end or beginning of buffer, stop and signal error.
62 62
63 Depending on the bidirectional context, the movement may be to the 63 Depending on the bidirectional context, the movement may be to the
64 right or to the left on the screen. This is in contrast with 64 right or to the left on the screen. This is in contrast with
65 \\[right-arrow-command], which see. */) 65 \\[right-char], which see. */)
66 (n) 66 (n)
67 Lisp_Object n; 67 Lisp_Object n;
68 { 68 {
69 if (NILP (n)) 69 if (NILP (n))
70 XSETFASTINT (n, 1); 70 XSETFASTINT (n, 1);
100 doc: /* Move point N characters backward (forward if N is negative). 100 doc: /* Move point N characters backward (forward if N is negative).
101 On attempt to pass beginning or end of buffer, stop and signal error. 101 On attempt to pass beginning or end of buffer, stop and signal error.
102 102
103 Depending on the bidirectional context, the movement may be to the 103 Depending on the bidirectional context, the movement may be to the
104 right or to the left on the screen. This is in contrast with 104 right or to the left on the screen. This is in contrast with
105 \\[left-arrow-command], which see. */) 105 \\[left-char], which see. */)
106 (n) 106 (n)
107 Lisp_Object n; 107 Lisp_Object n;
108 { 108 {
109 if (NILP (n)) 109 if (NILP (n))
110 XSETFASTINT (n, 1); 110 XSETFASTINT (n, 1);
120 Precisely, if point is on line I, move to the start of line I + N. 120 Precisely, if point is on line I, move to the start of line I + N.
121 If there isn't room, go as far as possible (no error). 121 If there isn't room, go as far as possible (no error).
122 Returns the count of lines left to move. If moving forward, 122 Returns the count of lines left to move. If moving forward,
123 that is N - number of lines moved; if backward, N + number moved. 123 that is N - number of lines moved; if backward, N + number moved.
124 With positive N, a non-empty line at the end counts as one line 124 With positive N, a non-empty line at the end counts as one line
125 successfully moved (for the return value). */) 125 successfully moved (for the return value). */)
126 (n) 126 (n)
127 Lisp_Object n; 127 Lisp_Object n;
128 { 128 {
129 int opoint = PT, opoint_byte = PT_BYTE; 129 int opoint = PT, opoint_byte = PT_BYTE;
130 int pos, pos_byte; 130 int pos, pos_byte;
165 doc: /* Move point to beginning of current line. 165 doc: /* Move point to beginning of current line.
166 With argument N not nil or 1, move forward N - 1 lines first. 166 With argument N not nil or 1, move forward N - 1 lines first.
167 If point reaches the beginning or end of buffer, it stops there. 167 If point reaches the beginning or end of buffer, it stops there.
168 168
169 This function constrains point to the current field unless this moves 169 This function constrains point to the current field unless this moves
170 point to a different line than the original, unconstrained result. If 170 point to a different line than the original, unconstrained result.
171 N is nil or 1, and a front-sticky field starts at point, the point 171 If N is nil or 1, and a front-sticky field starts at point, the point
172 does not move. To ignore field boundaries bind 172 does not move. To ignore field boundaries bind
173 `inhibit-field-text-motion' to t, or use the `forward-line' function 173 `inhibit-field-text-motion' to t, or use the `forward-line' function
174 instead. For instance, `(forward-line 0)' does the same thing as 174 instead. For instance, `(forward-line 0)' does the same thing as
175 `(beginning-of-line)', except that it ignores field boundaries. */) 175 `(beginning-of-line)', except that it ignores field boundaries. */)
176 (n) 176 (n)