From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Buffer-local faces Date: Tue, 04 May 2004 08:45:21 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87hduwyccu.fsf@mail.jurta.org> References: <20040503130350.GA1929@fencepost> <20040503232700.GB9451@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083650217 7342 80.91.224.253 (4 May 2004 05:56:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 05:56:57 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 07:56:48 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 1BKsvA-0006Di-00 for ; Tue, 04 May 2004 07:56:48 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKsvA-00086b-00 for ; Tue, 04 May 2004 07:56:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKsuv-0002bV-AH for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 01:56:33 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKstZ-00028A-9b for emacs-devel@gnu.org; Tue, 04 May 2004 01:55:09 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKssT-0001Ck-Ou for emacs-devel@gnu.org; Tue, 04 May 2004 01:54:34 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BKsrj-0000dv-Q1; Tue, 04 May 2004 01:53:15 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by mx20.gnu.org with esmtp (Exim 4.30) id 1BKsoC-0003XS-QP; Tue, 04 May 2004 01:49:36 -0400 Original-Received: from mail.jurta.org (80-235-34-218-dsl.mus.estpak.ee [80.235.34.218]) by spoon.dreamhost.com (Postfix) with ESMTP id 3008A13D87C; Mon, 3 May 2004 22:49:33 -0700 (PDT) Original-To: Miles Bader In-Reply-To: <20040503232700.GB9451@fencepost> (Miles Bader's message of "Mon, 3 May 2004 19:27:00 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) 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:22679 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22679 Miles Bader writes: > Actually, this doesn't work currently (not sure why), but I thought a nice > use would be something like (region region bold) -- which would _extend_ the > region face to also boldify stuff, as opposed to (region bold) which would > _replace_ the region face. Allowing this source of `mixin' face would be > very handy for users I think. Then subtracting face attributes would be useful too. For example, using the `-' symbol before the face name could remove its attributes from the composed face, e.g. using (region region - bold) to remove all attributes of the `bold' face whose values are equal to attribute values of the `region' face. This may complicate things, but this is no less useful than merging faces. And using (setq face-remapping-alist '((default - bold))) could remove the `bold' attributes from all faces. I don't know if this can be easily added to your current patch since it requires iterating over all faces and removing attributes from faces inheriting from the face in key position of every element of `face-remapping-alist'. -- Juri Linkov http://www.jurta.org/emacs/