From: Kenichi Handa Date: Mon, 13 May 2002 00:06:01 +0000 (+0000) Subject: (search_buffer): Give up boyer moore search if inverse X-Git-Tag: ttn-vms-21-2-B4~15083 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d2ac725b65f01ccc03c025eb9673403c4754c1c9;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 d4d97726375..643a57d59ca 100644 --- a/src/search.c +++ b/src/search.c @@ -1229,7 +1229,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,