From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: copy-face seems to work only for current frame Date: Tue, 27 Jan 2004 15:27:02 -0500 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1075235865 15573 80.91.224.253 (27 Jan 2004 20:37:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jan 2004 20:37:45 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 27 21:37:41 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AlZxs-0005Rg-00 for ; Tue, 27 Jan 2004 21:37:40 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlZww-0006e2-6C for geh-help-gnu-emacs@m.gmane.org; Tue, 27 Jan 2004 15:36:42 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AlZot-0003RC-1x for help-gnu-emacs@gnu.org; Tue, 27 Jan 2004 15:28:23 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AlZoB-0003Dr-67 for help-gnu-emacs@gnu.org; Tue, 27 Jan 2004 15:28:11 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AlZo9-0003D2-JL for help-gnu-emacs@gnu.org; Tue, 27 Jan 2004 15:27:37 -0500 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.24) id 1AlZna-0007bC-K4 for help-gnu-emacs@gnu.org; Tue, 27 Jan 2004 15:27:02 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: (message from Klaus Zeitler on 27 Jan 2004 15:51:59 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:16426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:16426 > From: Klaus Zeitler > Newsgroups: gnu.emacs.help > Date: 27 Jan 2004 15:51:59 +0100 > > I don't understand this. I thought woman.el creates (via defface) the face > woman-bold-face as soon as it gets loaded, then eval-after-load > copies another face into woman-bold-face and that should be it. defface does indeed run at load time, but the face copying is not a magic wand: it can only copy into the face definitions of those frames it finds in the value returned by (frame-list). And the new frame is not there yet. Look at the code of copy-face, and you will see it. > And I was so naive to think that this face would be used now in new > frames too. Why not? Because faces in Emacs are frame-local by design. Changing face definitions on one frame doesn't propagate them to other frames, unless some code walks the frame list and does that. copy-face indeed does this walking, but it cannot do it for non-existing frames. > Eli> Why don't you simply customize woman-bold-face? That's what one is > Eli> supposed to do in such cases, you know ;-) > > Mostly habit I guess A bad habit, I must say ;-) You don't need to actually do it via M-x customize-face if you don't like, simply use set-face-foreground etc. for woman-bold-face.