]> git.eshelyaron.com Git - emacs.git/commitdiff
(scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD.
authorKenichi Handa <handa@m17n.org>
Tue, 22 May 2007 12:04:59 +0000 (12:04 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 22 May 2007 12:04:59 +0000 (12:04 +0000)
src/ChangeLog
src/syntax.c

index 5cadef9490becff5b7aafc1686b838b13c3f23c9..952e9c6ae07994b6a1bb1d297406efd623bbe531 100644 (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.
index acb5d37825c1da9af5539e3c440ddcd14b2894ca..9161512a15bb1cfb672f75e46d315219c3f316d4 100644 (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++;