From: Kenichi Handa Date: Mon, 13 May 2002 00:04:16 +0000 (+0000) Subject: (search_buffer): Give up boyer moore search if inverse X-Git-Tag: emacs-pretest-21.2.91~275 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=61fc5a46cd7aa36590e6bd00f33c337ee37719cf;p=emacs.git (search_buffer): Give up boyer moore search if inverse translation change charset_base. --- diff --git a/src/search.c b/src/search.c index c923c2b2374..0bb17b23711 100644 --- a/src/search.c +++ b/src/search.c @@ -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,