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: customized default face doesn't work on new frames Date: Wed, 22 Jan 2003 13:33:08 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: 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 1043244179 24421 80.91.224.249 (22 Jan 2003 14:02:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 22 Jan 2003 14:02:59 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18bLT0-0006Lk-00 for ; Wed, 22 Jan 2003 15:02:58 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18bLUn-0001p4-00 for ; Wed, 22 Jan 2003 15:04:49 +0100 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 18bLQK-0001sP-00 for emacs-devel@quimby.gnus.org; Wed, 22 Jan 2003 09:00:12 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18bLPu-0001kz-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 08:59:46 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18bLOm-00011y-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 08:58:37 -0500 Original-Received: from pop.gmx.de ([213.165.65.60] helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.10.13) id 18bLJW-0007dS-00 for emacs-devel@gnu.org; Wed, 22 Jan 2003 08:53:10 -0500 Original-Received: (qmail 30841 invoked by uid 0); 22 Jan 2003 13:53:08 -0000 Original-Received: from dialin-145-254-191-214.arcor-ip.net (HELO HERMES) (145.254.191.214) by mail.gmx.net (mp009-rz3) with SMTP; 22 Jan 2003 13:53:08 -0000 X-Mailer: emacs 21.2.1 (via feedmail 11-beta-1 Q) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Wed, 22 Jan 2003 04:59:34 -0500") X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ 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.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600) Original-cc: Dave Love 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:10973 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10973 Richard Stallman writes: > If you customize the default face, it doesn't take effect on > subsequently-created frames, which is surprising. The code somewhat > suggests this is intentional, but I can't see why and the behaviour > simply seems wrong. > > I think that is a bug. Where exactly does the code suggest this was > intentional? > > I tried it just now, changing the background of `default' to purple, > and it did take affect for subsequently created frames--almost. The behaviour is different for different face attributes. For example changing the height of the font is not propagated to new frames. The same is true for the lisp functions: Work for new frames: (set-face-attribute 'default nil :foreground "red") (set-face-attribute 'default nil :background "cyan") Don't work for new frames: (set-face-attribute 'default nil :height 240) (set-face-attribute 'default nil :family "times") Oliver -- Oliver Scholz 3 Pluviôse 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