From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Re: [Mac-emacs-devel] jisx0201 display and x_list_fonts cache patch Date: Wed, 03 Jul 2002 20:49:07 -0600 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: akochoi@shaw.ca NNTP-Posting-Host: localhost.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1025751248 24411 127.0.0.1 (4 Jul 2002 02:54:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 4 Jul 2002 02:54:08 +0000 (UTC) Cc: mac-emacs-devel@lists.sourceforge.net, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17Pwky-0006Lc-00 for ; Thu, 04 Jul 2002 04:54:08 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17Pwql-0003NA-00 for ; Thu, 04 Jul 2002 05:00:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Pwkv-0005Hz-00; Wed, 03 Jul 2002 22:54:05 -0400 Original-Received: from h24-71-223-10.cg.shawcable.net ([24.71.223.10] helo=pd3mo1so.prod.shaw.ca) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Pwit-0005BA-00 for ; Wed, 03 Jul 2002 22:51:59 -0400 Original-Received: from pd3mr1so.prod.shaw.ca (pd3mr1so-ser.prod.shaw.ca [10.0.141.177]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0GYP00LH6EILNF@l-daemon> for emacs-devel@gnu.org; Wed, 03 Jul 2002 20:49:33 -0600 (MDT) Original-Received: from pn2ml10so.prod.shaw.ca (pn2ml10so-qfe0.prod.shaw.ca [10.0.121.80]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0GYP00K93EILVJ@l-daemon> for emacs-devel@gnu.org; Wed, 03 Jul 2002 20:49:33 -0600 (MDT) Original-Received: from localhost.shawmail (h24-71-203-212.cg.shawcable.net [24.71.203.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0GYP00GK8EIBXD@l-daemon> for emacs-devel@gnu.org; Wed, 03 Jul 2002 20:49:33 -0600 (MDT) In-Reply-To: Original-To: mituharu@math.s.chiba-u.ac.jp Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5435 > The attached patch remedies some problems somewhat related to Japanese > characters and input methods: > > 1. displaying jisx0201 roman/kana characters > Basically this part is imported from mac/src/macterm.c in Emacs > 21.2. I confirmed that this patch works both with the Osaka font > (a built-in Japanese font in MacOS) and with converted ETL fonts. > > 2. caching font lists in x_list_fonts > SKK, one of widely-used Japanese input methods in Emacs, > frequently changes the cursor color to reflect the current input > mode. But Emacs in the current CVS invalidates the face cache > whenever the cursor color is changed (``++face_change_count;'' in > xfaces.c), and it causes lots of regexp matches in > mac_font_pattern_match. With caching font lists in x_list_fonts, > which is already done in xterm.c, the reconstruction of the face > cache can be done without ``the spinning rainbow''. > > YAMAMOTO Mitsuharu > mituharu@math.s.chiba-u.ac.jp > > [...] Hi Mitsuharu, Thank you for sending in these patches. I have tested them and checked them into the CVS. Andrew.