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: Simplification of faces Date: Sun, 30 Sep 2007 08:54:59 -0400 Message-ID: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1191157030 12569 80.91.229.12 (30 Sep 2007 12:57:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Sep 2007 12:57:10 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Sep 30 14:57:07 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 1IbyM7-000335-3H for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2007 14:57:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbyM3-0008KE-FO for ged-emacs-devel@m.gmane.org; Sun, 30 Sep 2007 08:57:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbyKp-0007O5-Q9 for emacs-devel@gnu.org; Sun, 30 Sep 2007 08:55:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbyKp-0007Ng-CW for emacs-devel@gnu.org; Sun, 30 Sep 2007 08:55:47 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbyKp-0007NX-5u for emacs-devel@gnu.org; Sun, 30 Sep 2007 08:55:47 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbyKo-0000zF-Ro for emacs-devel@gnu.org; Sun, 30 Sep 2007 08:55:46 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1IbyK3-0005Du-11; Sun, 30 Sep 2007 08:54:59 -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:80053 Archived-At: I am thinking of essentially eliminating the face attributes as a way to control what a face looks like. Programs would use only `defface' and `face-spec-set'. In addition, a spec given in `face-spec-set' would totally replace whatever spec was previously given for the same face using the `defface' or `face-spec-set'. Thus, the appearance information for a face would consist of a single Lisp datum, plus X resources. (Inheritance from other faces would still occur.) I've checked all the uses of `face-spec-set' outside of custom and faces.el. It seems they would not need to be changed. However, this would require rewriting the code that calls `set-face-attribute' and the older functions such as `set-face-foreground' that set single attributes. There are only about 8 packages in Emacs which do so, so it would not be a big job. However, there may be some other programs that users use which still rely on this feature. What do people think?