]> git.eshelyaron.com Git - emacs.git/commitdiff
(search_buffer): Give up boyer moore search if inverse
authorKenichi Handa <handa@m17n.org>
Mon, 13 May 2002 00:04:16 +0000 (00:04 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 13 May 2002 00:04:16 +0000 (00:04 +0000)
translation change charset_base.

src/search.c

index c923c2b2374d1fc30298c8e0f356283585ac0adc..0bb17b23711967638f8b33e63df9c65a5881f241 100644 (file)
@@ -1237,7 +1237,11 @@ search_buffer (string, pos, pos_byte, lim, lim_byte, n,
                  /* Keep track of which character set row
                     contains the characters that need translation.  */
                  int charset_base_code = c & ~CHAR_FIELD3_MASK;
-                 if (charset_base == -1)
+                 int inverse_charset_base = inverse & ~CHAR_FIELD3_MASK;
+
+                 if (charset_base_code != inverse_charset_base)
+                   boyer_moore_ok = 0;
+                 else if (charset_base == -1)
                    charset_base = charset_base_code;
                  else if (charset_base != charset_base_code)
                    /* If two different rows appear, needing translation,