From: Kenichi Handa Date: Tue, 22 May 2007 12:04:59 +0000 (+0000) Subject: (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. X-Git-Tag: emacs-pretest-23.0.90~12582 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=662b4cfce34c677d0fee855709fd224f4864639f;p=emacs.git (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. --- diff --git a/src/ChangeLog b/src/ChangeLog index 5cadef9490b..952e9c6ae07 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-05-22 Martin Rudalics + + * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. + 2007-05-21 Chong Yidong * image.c (uncache_image): New function. diff --git a/src/syntax.c b/src/syntax.c index acb5d37825c..9161512a15b 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -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++;