From: Kenichi Handa Date: Wed, 22 Oct 2008 05:31:05 +0000 (+0000) Subject: (scan_words): Call word_boundary_p instead of comparing X-Git-Tag: emacs-pretest-23.0.90~2276 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b70a11c5564c26a0f22f716f40a67e621170665;p=emacs.git (scan_words): Call word_boundary_p instead of comparing scripts. --- diff --git a/src/syntax.c b/src/syntax.c index eae8f360fef..8dea32b9117 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1248,7 +1248,7 @@ scan_words (from, count) if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch1), script)) + || word_boundary_p (ch0, ch1)) break; INC_BOTH (from, from_byte); ch0 = ch1; @@ -1301,7 +1301,7 @@ scan_words (from, count) if ((code != Sword && (! words_include_escapes || (code != Sescape && code != Scharquote))) - || ! EQ (CHAR_TABLE_REF (Vchar_script_table, ch0), script)) + || word_boundary_p (ch0, ch1)) { INC_BOTH (from, from_byte); break;