diff options
author | Kenichi Handa <handa@m17n.org> | 2007-05-22 12:04:59 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 2007-05-22 12:04:59 +0000 |
commit | 662b4cfce34c677d0fee855709fd224f4864639f (patch) | |
tree | a4fec04548ee0b3a3dde444bf84ebf36d04c18c3 /src/syntax.c | |
parent | 4d55e513d9e8bbae1b3a85af9a41d37a7ee61298 (diff) | |
download | emacs-662b4cfce34c677d0fee855709fd224f4864639f.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++; |