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: [Emacs-diffs] emacs/src fontset.c Date: Thu, 12 Mar 2009 09:41:41 +0900 Message-ID: References: <87eix49ppl.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1236818512 3847 80.91.229.12 (12 Mar 2009 00:41:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Mar 2009 00:41:52 +0000 (UTC) Cc: lekktu@gmail.com, unicad.el@gmail.com, emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 12 01:43:08 2009 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 1LhZ0t-0002m9-Vd for ged-emacs-devel@m.gmane.org; Thu, 12 Mar 2009 01:43:08 +0100 Original-Received: from localhost ([127.0.0.1]:33178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhYzY-0003es-8Y for ged-emacs-devel@m.gmane.org; Wed, 11 Mar 2009 20:41:44 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LhYzT-0003ed-Se for emacs-devel@gnu.org; Wed, 11 Mar 2009 20:41:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LhYzS-0003ds-E3 for emacs-devel@gnu.org; Wed, 11 Mar 2009 20:41:39 -0400 Original-Received: from [199.232.76.173] (port=39088 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LhYzS-0003dp-AD for emacs-devel@gnu.org; Wed, 11 Mar 2009 20:41:38 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:47697) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LhYzR-0001RX-KY for emacs-devel@gnu.org; Wed, 11 Mar 2009 20:41:38 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id n2C0fVZc003494; Thu, 12 Mar 2009 09:41:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp3.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id n2C0fVm2017927; Thu, 12 Mar 2009 09:41:31 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp3.aist.go.jp with ESMTP id n2C0fUNW029359; Thu, 12 Mar 2009 09:41:30 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LhYzV-0005Xf-Fp; Thu, 12 Mar 2009 09:41:41 +0900 In-reply-to: <87eix49ppl.fsf@cyd.mit.edu> (message from Chong Yidong on Wed, 11 Mar 2009 09:03:18 -0400) X-detected-operating-system: 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:109573 Archived-At: In article <87eix49ppl.fsf@cyd.mit.edu>, Chong Yidong writes: > Kenichi Handa writes: > > Please try again. I committed all changes. > What is the purpose of these latest changes? To fix this problem reported a while ago: In article <760897560812160136v32810859x92081fde365dee1e@mail.gmail.com>, "Qichen Huang" writes: > run emacs without any extra settings: runemacs.exe -Q > (set-fontset-font > "fontset-startup" 'ascii ;; or 'latin > "-*-Courier New-*-*-*-*-17-*-*-*-*-*-iso8859-1") > or > (set-fontset-font (frame-parameter nil 'font) > 'ascii ;; or 'latin > (font-spec :family "Courier New" :size 17)) > Neither work. In the new code, when a font for ASCII is changed in a fontset, the default font is changed to that new font in all frames that are using the same fontset. By the way, after the following change, (frame-parameter nil 'font) doesn't return a fontset of the current frame. 2009-01-14 Jason Rumney * frame.c (x_set_font): Always store a font to the font parameter, never a fontset. (Bug#1562) Now the right way to get a fontset is: (face-attribute 'default :fontset) --- Kenichi Handa handa@m17n.org