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: sans-serif name change Date: Wed, 25 Jun 2008 20:36:39 +0900 Message-ID: References: <87hcbi9vbg.fsf@catnip.gol.com> <4862198F.4060305@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1214393888 13532 80.91.229.12 (25 Jun 2008 11:38:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2008 11:38:08 +0000 (UTC) Cc: schwab@suse.de, emacs-devel@gnu.org, miles@gnu.org To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 25 13:38:52 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBTKl-0005at-TV for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2008 13:38:44 +0200 Original-Received: from localhost ([127.0.0.1]:50667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBTJw-0002y3-4A for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2008 07:37:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBTIz-000277-47 for emacs-devel@gnu.org; Wed, 25 Jun 2008 07:36:53 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBTIy-000265-40 for emacs-devel@gnu.org; Wed, 25 Jun 2008 07:36:52 -0400 Original-Received: from [199.232.76.173] (port=50454 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBTIx-00025l-EW for emacs-devel@gnu.org; Wed, 25 Jun 2008 07:36:51 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:59624) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBTIn-0007CC-UP; Wed, 25 Jun 2008 07:36:42 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5PBbgFU027193; Wed, 25 Jun 2008 20:37:42 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5PBadsJ019598; Wed, 25 Jun 2008 20:36:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5PBad9l018319; Wed, 25 Jun 2008 20:36:39 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1KBTIl-0006en-Nc; Wed, 25 Jun 2008 20:36:39 +0900 In-reply-to: <4862198F.4060305@gnu.org> (message from Jason Rumney on Wed, 25 Jun 2008 11:10:23 +0100) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 9 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:99912 Archived-At: In article <4862198F.4060305@gnu.org>, Jason Rumney writes: > My guess is that the `-' in Sans-Serif is being treated as a separator > character, and causes Emacs to look for a font called Serif with the > foundry Sans, or something similar. Yes. I didn't change that behaviour for backward compatibility, but as face has the attribute :foundy now, it may be ok to break that compatibility. The parsing of XXX-YYY as FOUNDRY-FAMILY is now done in the function set-face-attribute as this: (if (and (eq (car args) :family) (stringp (cadr args)) (string-match "\\([^-]*\\)-\\([^-]*\\)" (cadr args))) (let ((foundry (match-string 1 (cadr args))) (family (match-string 2 (cadr args)))) (internal-set-lisp-face-attribute face :foundry (purecopy foundry) where) (internal-set-lisp-face-attribute face :family (purecopy family) where)) (internal-set-lisp-face-attribute face (car args) (purecopy (cadr args)) where))) --- Kenichi Handa handa@ni.aist.go.jp