From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: TUTORIAL.bg and windows-1251 Date: Wed, 7 Jan 2004 09:25:43 +0900 (JST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200401070025.JAA03410@etlken.m17n.org> References: <3FB52552.6090302@fmi.uni-sofia.bg> <200311170721.QAA11735@etlken.m17n.org> <3FBA3F81.4010602@fmi.uni-sofia.bg> <200311242355.IAA24563@etlken.m17n.org> <3FC45367.6070504@fmi.uni-sofia.bg> <200311260747.QAA27236@etlken.m17n.org> <3FC464C2.7010504@fmi.uni-sofia.bg> <200311261317.WAA27673@etlken.m17n.org> <200312030834.RAA03004@etlken.m17n.org> <3FCF60C9.8060009@fmi.uni-sofia.bg> <200312042328.IAA06933@etlken.m17n.org> <3FF2E5DF.4090906@fmi.uni-sofia.bg> <200401050414.NAA00014@etlken.m17n.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1073435639 29592 80.91.224.253 (7 Jan 2004 00:33:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 7 Jan 2004 00:33:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Jan 07 01:33:56 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae1e0-00021A-00 for ; Wed, 07 Jan 2004 01:33:56 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ae1dz-00040A-00 for ; Wed, 07 Jan 2004 01:33:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae2Ua-0005XV-1s for emacs-devel@quimby.gnus.org; Tue, 06 Jan 2004 20:28:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Ae2UN-0005W3-44 for emacs-devel@gnu.org; Tue, 06 Jan 2004 20:28:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Ae2Tl-0005QM-SR for emacs-devel@gnu.org; Tue, 06 Jan 2004 20:27:58 -0500 Original-Received: from [192.47.44.130] (helo=tsukuba.m17n.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Ae2Tj-0005On-9p for emacs-devel@gnu.org; Tue, 06 Jan 2004 20:27:23 -0500 Original-Received: from fs.m17n.org (fs.m17n.org [192.47.44.2]) by tsukuba.m17n.org (8.11.6p2/3.7W-20010518204228) with ESMTP id i070Pih11349; Wed, 7 Jan 2004 09:25:44 +0900 (JST) (envelope-from handa@m17n.org) Original-Received: from etlken.m17n.org (etlken.m17n.org [192.47.44.125]) by fs.m17n.org (8.11.6/3.7W-20010823150639) with ESMTP id i070Phs27145; Wed, 7 Jan 2004 09:25:43 +0900 (JST) Original-Received: (from handa@localhost) by etlken.m17n.org (8.8.8+Sun/3.7W-2001040620) id JAA03410; Wed, 7 Jan 2004 09:25:43 +0900 (JST) Original-To: mituharu@math.s.chiba-u.ac.jp In-reply-to: (message from YAMAMOTO Mitsuharu on Tue, 06 Jan 2004 21:03:44 +0900) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/21.3 (sparc-sun-solaris2.6) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19052 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19052 In article , YAMAMOTO Mitsuharu writes: >> By the way, for rendering, I installed the code I proposed a while >> ago which forces *-microsoft-cp1251 fonts to be used for Cyrillic >> letters of the charset mule-unicode-0100-24ff in Bulgarian >> environment on 2003-12-29. Have you noticed it? > After this change, I'm experiencing slow redisplay of multibyte > characters in Mac OS X (with both Carbon and X). Strangely, it does > not cause any slowdown for me in Solaris 8. > I tried to partially revert to the previous version, and the original > redisplay speed came back with the following change. > --- fontset.c~ Mon Dec 29 18:10:36 2003 > +++ fontset.c Tue Jan 6 20:48:22 2004 > @@ -305,7 +305,7 @@ > elt = FONTSET_REF (FONTSET_BASE (fontset), *c); > if (NILP (elt)) > elt = lookup_overriding_fontspec (FONTSET_FRAME (fontset), *c); > - if (NILP (elt) && ! EQ (FONTSET_BASE (fontset), Vdefault_fontset)) > + if (NILP (elt) && ! EQ (fontset, Vdefault_fontset)) > elt = FONTSET_REF (Vdefault_fontset, *c); > if (NILP (elt)) > return Qnil; Thank you for the report. I found what is wrong. The above change is not good. I've just committed the patch below. Please try it. *** fontset.c.~1.82.~ Mon Dec 29 14:12:04 2003 --- fontset.c Wed Jan 7 09:11:52 2004 *************** *** 305,311 **** elt = FONTSET_REF (FONTSET_BASE (fontset), *c); if (NILP (elt)) elt = lookup_overriding_fontspec (FONTSET_FRAME (fontset), *c); ! if (NILP (elt) && ! EQ (FONTSET_BASE (fontset), Vdefault_fontset)) elt = FONTSET_REF (Vdefault_fontset, *c); if (NILP (elt)) return Qnil; --- 305,311 ---- elt = FONTSET_REF (FONTSET_BASE (fontset), *c); if (NILP (elt)) elt = lookup_overriding_fontspec (FONTSET_FRAME (fontset), *c); ! if (NILP (elt)) elt = FONTSET_REF (Vdefault_fontset, *c); if (NILP (elt)) return Qnil; --- Ken'ichi HANDA handa@m17n.org