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: +face-remapping-20040525-2-c.patch Date: Thu, 27 May 2004 08:46:58 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87r7t8fu5a.fsf@tc-1-100.kawasaki.gol.ne.jp> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1085677771 25862 80.91.224.253 (27 May 2004 17:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 May 2004 17:09:31 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu May 27 19:09:23 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTONe-00086S-00 for ; Thu, 27 May 2004 19:09:22 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BTONe-0006Vt-00 for ; Thu, 27 May 2004 19:09:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTO1S-0002RR-Av for emacs-devel@quimby.gnus.org; Thu, 27 May 2004 12:46:26 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BTNlv-0008Qc-Mk for emacs-devel@gnu.org; Thu, 27 May 2004 12:30:23 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BTM9c-0008QA-DL for emacs-devel@gnu.org; Thu, 27 May 2004 10:47:15 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BTKHi-0001FJ-PI for emacs-devel@gnu.org; Thu, 27 May 2004 08:46:59 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BTKHi-0000BZ-B1; Thu, 27 May 2004 08:46:58 -0400 Original-To: Miles Bader In-reply-to: <87r7t8fu5a.fsf@tc-1-100.kawasaki.gol.ne.jp> (message from Miles Bader on Tue, 25 May 2004 23:39:29 +0900) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:24029 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:24029 + This variable may be be used to locally change the meaning of face-names, This variable is used for buffer-local changes in the appearance of a face. + for instance making the @code{default} face a variable-pitch face in a + particular buffer. It should be Its value should be an alist, whose elements have the form + @code{(@var{face} @var{remapping@dots{}})}; The @dots should be outside of @var. Only the variable name itself should be inside @var. + Alternate face definitions provided by @code{face-remapping-alist} + @emph{replace} the remapped faces, they aren't merged with it. This is not quite grammatical, and isn't entirely clear. + Recursive face-remapping does not result in an error. Instead, if a + remapped face is used recursively, the remapping is ignored for the + recursive used, and the ``true'' face used instead. I think I understand what that means, but it isn't easy to translate into concrete terms. Could you write it more concretely? And give an example? + Because of the previous two properties, an easy way to @emph{add} to a + face's definition using @code{face-remapping-alist}, is simply to + recursively include the remapped face it the remapped definition (this is + not necessary when remapping the @code{default} face, the result will be + eventually merged with the true @code{default} by the display mechanism). Could you give an example?