1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-25 23:10:47 -08:00

(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.

This commit is contained in:
Chong Yidong 2007-06-06 17:09:40 +00:00
parent 60fb48600c
commit fc13f0a2e6

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++;