From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: format-mode-line Date: Fri, 07 Jan 2005 18:04:19 -0500 Message-ID: References: <16858.35618.823283.184368@farnswood.snap.net.nz> <16860.33938.337020.736393@farnswood.snap.net.nz> <16862.15106.231358.160456@farnswood.snap.net.nz> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1105140725 31475 80.91.229.6 (7 Jan 2005 23:32:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 7 Jan 2005 23:32:05 +0000 (UTC) Cc: emacs-devel@gnu.org, no-spam@cua.dk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 08 00:31:53 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cn3aC-0006Q6-00 for ; Sat, 08 Jan 2005 00:31:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cn3lZ-0006DK-0l for ged-emacs-devel@m.gmane.org; Fri, 07 Jan 2005 18:43:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Cn3lQ-0006Cz-3C for emacs-devel@gnu.org; Fri, 07 Jan 2005 18:43:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Cn3bW-0005O8-TQ for emacs-devel@gnu.org; Fri, 07 Jan 2005 18:33:22 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cn3bS-0005JX-Hl for emacs-devel@gnu.org; Fri, 07 Jan 2005 18:33:10 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Cn3GD-0006cP-U9 for emacs-devel@gnu.org; Fri, 07 Jan 2005 18:11:13 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Cn39X-0008FR-V1; Fri, 07 Jan 2005 18:04:20 -0500 Original-To: Nick Roberts In-reply-to: <16862.15106.231358.160456@farnswood.snap.net.nz> (message from Nick Roberts on Fri, 7 Jan 2005 20:32:18 +1300) 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: main.gmane.org gmane.emacs.devel:32019 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:32019 > When format is nil (for mode-line-format) or t (for header-line-format), > the resulting string is propertized with the proper mode-line and header-line > face as the base face. I'll show my ignorance: I don't know what a base face is and I can't find a definition in the manual. There is no term "base face". What he means is a face to apply by default to any characters that don't specify some other face. So that you would get the same face actually used in the mode line. I think adding an argument specifying a default face for format-mode-line is a good way to do it.