From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: fixing for search.c Date: Fri, 1 Apr 2005 10:25:34 +0900 (JST) Message-ID: <200504010125.KAA07232@etlken.m17n.org> References: <200503210254.LAA27289@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1112319957 18265 80.91.229.2 (1 Apr 2005 01:45:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 1 Apr 2005 01:45:57 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 01 03:45:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DHBDd-0001su-Lf for ged-emacs-devel@m.gmane.org; Fri, 01 Apr 2005 03:45:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHBUQ-0006Ef-ID for ged-emacs-devel@m.gmane.org; Thu, 31 Mar 2005 21:02:26 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DHBLh-0003lh-RP for emacs-devel@gnu.org; Thu, 31 Mar 2005 20:53:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DHBLO-0003bm-PD for emacs-devel@gnu.org; Thu, 31 Mar 2005 20:53:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DHBLN-0003YO-S1 for emacs-devel@gnu.org; Thu, 31 Mar 2005 20:53:05 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1DHAun-0006hY-3P for emacs-devel@gnu.org; Thu, 31 Mar 2005 20:25:37 -0500 Original-Received: from nfs.m17n.org (nfs.m17n.org [192.47.44.7]) by tsukuba.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j311PZdY013566 for ; Fri, 1 Apr 2005 10:25:35 +0900 Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by nfs.m17n.org (8.12.3/8.12.3/Debian-7.1) with ESMTP id j311PYDI002057 for ; Fri, 1 Apr 2005 10:25:35 +0900 Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id KAA07232; Fri, 1 Apr 2005 10:25:34 +0900 (JST) Original-To: emacs-devel@gnu.org In-reply-to: <200503210254.LAA27289@etlken.m17n.org> (message from Kenichi Handa on Mon, 21 Mar 2005 11:54:08 +0900 (JST)) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:35450 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:35450 In article <200503210254.LAA27289@etlken.m17n.org>, Kenichi Handa writes: > As I wrote before, currently these codes are commented out: > ;;(set-downcase-syntax ?=C4=B0 ?i tbl) > ;;(set-upcase-syntax ?I ?=C4=B1 tbl) > because search and regex don't handle these cases correclty. I've just installed the following changes to fix the above problem. As Richard asked me to test them locally for a while, I've used them for about 10 days and found no problem. But, if you find some case-related problem in search/regexp, perhaps these changes should be doubted at first. 2005-04-01 Kenichi Handa * lisp.h (Vascii_upcase_table, Vascii_canon_table, Vascii_eqv_table): Extern them. * casetab.c (set_case_table): If standard is nonzero, setup Vascii_upcase_table, Vascii_canon_table, and Vascii_eqv_table. * search.c (looking_at_1): Use current_buffer->case_canon_table, not DOWNCASE_TABLE. (string_match_1): Likewise. (fast_c_string_match_ignore_case): Use Vascii_canon_table, not Vascii_downcase_table. (fast_string_match_ignore_case): Likewise. (search_buffer): Fix checking of boyer-moore usability. (boyer_moore): Calculate translate_prev_byte1/2/3 in advance. No need of tranlating characters in PAT. Fix calculation of simple_translate. --- Ken'ichi HANDA handa@m17n.org