From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Simplification of faces Date: Mon, 08 Oct 2007 21:14:39 -0400 Message-ID: References: <87ejg63hit.fsf@maru.md5i.com> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1191892706 11778 80.91.229.12 (9 Oct 2007 01:18:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Oct 2007 01:18:26 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org To: Michael Welsh Duggan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 09 03:18:24 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1If3jo-0006Wo-0U for ged-emacs-devel@m.gmane.org; Tue, 09 Oct 2007 03:18:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1If3ji-0006rk-Hf for ged-emacs-devel@m.gmane.org; Mon, 08 Oct 2007 21:18:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1If3hD-0005j3-LD for emacs-devel@gnu.org; Mon, 08 Oct 2007 21:15:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1If3hC-0005hO-EE for emacs-devel@gnu.org; Mon, 08 Oct 2007 21:15:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1If3hC-0005h6-8A for emacs-devel@gnu.org; Mon, 08 Oct 2007 21:15:38 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1If3hD-0006Ih-1G for emacs-devel@gnu.org; Mon, 08 Oct 2007 21:15:39 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1If3gF-0003mS-Le; Mon, 08 Oct 2007 21:14:39 -0400 In-reply-to: <87ejg63hit.fsf@maru.md5i.com> (message from Michael Welsh Duggan on Sun, 07 Oct 2007 14:29:30 -0400) X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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: news.gmane.org gmane.emacs.devel:80444 Archived-At: I am looking at `face-attribute', and it looks like it would be easy enough to rewrite `set-face-attribute' to use `face-spec-set' and `face-attribute' instead of the current `set-face-attribute-internal'. Would this be a reasonable change? Please give it a try. To work properly, it will need to find the spec that was used last, alter it, and specify that one. It might be easier if we extend the kinds of specs that are possible. Right now a spec can specify attributes for a particular kind of screen, and it can specify default attributes that come after those. If we extend the format of a face spec so that it can have high-priority overriding attributes, which come before all the rest, then `set-face-attribute' could work by changing those high-priority overriding attributes in the spec. What do people think about that?