From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Buffer-local faces Date: 04 May 2004 09:37:52 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <20040503130350.GA1929@fencepost> <20040503232700.GB9451@fencepost> <87hduwyccu.fsf@mail.jurta.org> <20040504082236.GA21306@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083678656 2593 80.91.224.253 (4 May 2004 13:50:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 13:50:56 +0000 (UTC) Cc: Juri Linkov , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 15:50:42 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 1BL0Jm-0006Tz-00 for ; Tue, 04 May 2004 15:50:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL0Jl-0000S6-01 for ; Tue, 04 May 2004 15:50:42 +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 1BL0Ir-0007kQ-Gq for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 09:49:45 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL0CM-0005Km-Vm for emacs-devel@gnu.org; Tue, 04 May 2004 09:43:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL0BA-0003CJ-7V for emacs-devel@gnu.org; Tue, 04 May 2004 09:42:20 -0400 Original-Received: from [206.47.199.165] (helo=simmts7-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL07R-0007aX-0Q; Tue, 04 May 2004 09:37:57 -0400 Original-Received: from empanada.local ([67.71.116.220]) by simmts7-srv.bellnexxia.net (InterMail vM.5.01.06.05 201-253-122-130-105-20030824) with ESMTP id <20040504133755.NNUA12459.simmts7-srv.bellnexxia.net@empanada.local>; Tue, 4 May 2004 09:37:55 -0400 Original-Received: by empanada.local (Postfix, from userid 502) id DB1E717C6E1; Tue, 4 May 2004 09:37:52 -0400 (EDT) Original-To: Miles Bader In-Reply-To: <20040504082236.GA21306@fencepost> Original-Lines: 26 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:22706 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22706 > It's a much less obvious operation (what does subtracting red from black > yield? [Ok, maybe cyan :-]) and I can't offhand think of any obvious uses > for it.... As I suggested, we might want to add a notion of color composition, so we could have a face that make the foreground darker, or redder, or ... But supposedly withing RGB this doesn't work so well, so maybe it would be better to do it on CYK colors. In any case this is for post-release. > A _different_ feature that might work is a way to mark a face attribute as > `non overridable'. For instance if a face attribute could be a list like > (fixed VALUE), where VALUE is a normal value for that attribute, face > merging would always use the `base' value for that attribute instead of the > `normally overriding' value. A related question is how to make a face that uses explicitly the default font. E.g. let's say my header-line face uses helvetica font and I want to put text in the header-line that uses the same font as the default font. Right now, the best I could come up with is to extract the font of `default' and pass it to `myface', but that's done "statically". I'm not sure what's a useful generalization, maybe a "filtered inheritance" where you can specify which attributes are inherited from a given parent. Stefan