comparison src/syntax.c @ 22052:74d69da256e4

(skip_chars): When fetching char after \, don't fail to set c_leading_code.
author Richard M. Stallman <rms@gnu.org>
date Wed, 13 May 1998 06:47:15 +0000
parents 31c39cdc9e11
children 09efd6a94b4b
comparison
equal deleted inserted replaced
22051:3e5822a3448d 22052:74d69da256e4
1185 Lisp_Object skip_chars (); 1185 Lisp_Object skip_chars ();
1186 1186
1187 DEFUN ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0, 1187 DEFUN ("skip-chars-forward", Fskip_chars_forward, Sskip_chars_forward, 1, 2, 0,
1188 "Move point forward, stopping before a char not in STRING, or at pos LIM.\n\ 1188 "Move point forward, stopping before a char not in STRING, or at pos LIM.\n\
1189 STRING is like the inside of a `[...]' in a regular expression\n\ 1189 STRING is like the inside of a `[...]' in a regular expression\n\
1190 except that `]' is never special and `\\' quotes `^', `-' or `\\'.\n\ 1190 except that `]' is never special and `\\' quotes `^', `-' or `\\'\n\
1191 (but not as the end of a range; quoting is never needed there).\n\
1191 Thus, with arg \"a-zA-Z\", this skips letters stopping before first nonletter.\n\ 1192 Thus, with arg \"a-zA-Z\", this skips letters stopping before first nonletter.\n\
1192 With arg \"^a-zA-Z\", skips nonletters stopping before first letter.\n\ 1193 With arg \"^a-zA-Z\", skips nonletters stopping before first letter.\n\
1193 Returns the distance traveled, either zero or positive.") 1194 Returns the distance traveled, either zero or positive.")
1194 (string, lim) 1195 (string, lim)
1195 Lisp_Object string, lim; 1196 Lisp_Object string, lim;
1309 { 1310 {
1310 if (i == XSTRING (string)->size) 1311 if (i == XSTRING (string)->size)
1311 break; 1312 break;
1312 1313
1313 if (string_multibyte) 1314 if (string_multibyte)
1314 FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte); 1315 {
1316 c_leading_code = XSTRING (string)->data[i];
1317 FETCH_STRING_CHAR_ADVANCE (c, string, i, i_byte);
1318 }
1315 else 1319 else
1316 c = XSTRING (string)->data[i++]; 1320 c = c_leading_code = XSTRING (string)->data[i++];
1317 } 1321 }
1318 if (i < XSTRING (string)->size && XSTRING (string)->data[i] == '-') 1322 if (i < XSTRING (string)->size && XSTRING (string)->data[i] == '-')
1319 { 1323 {
1320 unsigned int c2; 1324 unsigned int c2;
1321 1325