diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2007-06-06 17:09:40 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2007-06-06 17:09:40 +0000 |
commit | fc13f0a2e6036d011828f0efcb4b039dcc4e8752 (patch) | |
tree | 6b13ebdd4766196c60a97fe68ab56b48fc746745 /src/syntax.c | |
parent | 60fb48600cba5a2562f233af9ac9c49bcc784ece (diff) | |
download | emacs-fc13f0a2e6036d011828f0efcb4b039dcc4e8752.tar.gz |
(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 12 |
1 files changed, 6 insertions, 6 deletions
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++; |