From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.devel Subject: Re: `set-fontset-font' and ascii characters Date: Fri, 02 May 2003 02:39:53 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87he8kutns.fsf@ID-87814.user.dfncis.de> <200305010810.RAA15007@etlken.m17n.org> <87u1cezhlu.fsf@ID-87814.user.dfncis.de> <200305012353.IAA15973@etlken.m17n.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051836111 13306 80.91.224.249 (2 May 2003 00:41:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 2 May 2003 00:41:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri May 02 02:41:50 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19BOcY-0003SU-00 for ; Fri, 02 May 2003 02:41:50 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19BOdq-0004QC-00 for ; Fri, 02 May 2003 02:43:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19BOd8-0007Q8-00 for emacs-devel@quimby.gnus.org; Thu, 01 May 2003 20:42:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19BOcO-0006gl-00 for emacs-devel@gnu.org; Thu, 01 May 2003 20:41:40 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19BOc8-0005lm-00 for emacs-devel@gnu.org; Thu, 01 May 2003 20:41:27 -0400 Original-Received: from imap.gmx.net ([213.165.64.20] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 19BObN-0004Bh-00 for emacs-devel@gnu.org; Thu, 01 May 2003 20:40:37 -0400 Original-Received: (qmail 22046 invoked by uid 65534); 2 May 2003 00:40:35 -0000 Original-Received: from dialin-145-254-191-001.arcor-ip.net (EHLO HERMES) (145.254.191.1) by mail.gmx.net (mp023-rz3) with SMTP; 02 May 2003 02:40:35 +0200 Original-To: Kenichi Handa In-Reply-To: <200305012353.IAA15973@etlken.m17n.org> (Kenichi Handa's message of "Fri, 2 May 2003 08:53:17 +0900 (JST)") X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13606 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13606 Kenichi Handa writes: [...] > By the way, I re-consider the problem of chaning the fontset > of the default face. > > You wrote: >> Now, if an ASCII font was changed, Fset_fontset_font checks all frames >> whether FONTSET is their frame fontset and forces a resizing of all >> frames that have. This is done by the new function >> x_new_fontset_force, which is like x_new_fontset, except that it does >> its works even if new fontset = old fontset. (This is done by >> factoring out a new function x_set_fontset_internal out of x_set_fontset.) > > Isn't it easier to call Finternal_set_lisp_face_attribute on > all faces that has FONTSET? That function handles the > default face correctly. I guess so. Basically that is how I discovered x_new_fontset. I started with Finternal_set_lisp_face_attribute and read the code until I found the exact spot where the frame is resized. And now you tell me that all this was pointless, because I could have used Finternal_set_lisp_face in the first place? *moan* :-) Allright, if you say that it is cleaner or easier to maintain this way, then I'll look at it tomorrow. Oliver -- Oliver Scholz 13 Floréal an 211 de la Révolution Taunusstr. 25 Liberté, Egalité, Fraternité! 60329 Frankfurt a. M. http://www.jungdemokratenhessen.de Tel. (069) 97 40 99 42 http://www.jdjl.org