(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.

This commit is contained in:
Kenichi Handa 2007-05-22 12:04:59 +00:00
parent 4d55e513d9
commit 662b4cfce3
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,7 @@
2007-05-22 Martin Rudalics <rudalics@gmx.at>
* syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
2007-05-21 Chong Yidong <cyd@stupidchicken.com>
* image.c (uncache_image): New function.

View file

@ -1276,19 +1276,19 @@ scan_words (from, count)
position of it. */
while (1)
{
int temp_byte;
if (from == beg)
break;
temp_byte = dec_bytepos (from_byte);
DEC_BOTH (from, from_byte);
UPDATE_SYNTAX_TABLE_BACKWARD (from);
ch0 = FETCH_CHAR (temp_byte);
ch0 = FETCH_CHAR (from_byte);
code = SYNTAX (ch0);
if (!(words_include_escapes
&& (code == Sescape || code == Scharquote)))
if (code != Sword || WORD_BOUNDARY_P (ch0, ch1))
break;
DEC_BOTH (from, from_byte);
{
INC_BOTH (from, from_byte);
break;
}
ch1 = ch0;
}
count++;