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-20040505-0.patch Date: Mon, 10 May 2004 13:54:18 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <874qqwrycm.fsf@tc-1-100.kawasaki.gol.ne.jp> <20040505221256.GB7789@fencepost> <20040508013940.GB6489@fencepost> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1084214186 26780 80.91.224.253 (10 May 2004 18:36:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 May 2004 18:36:26 +0000 (UTC) Cc: bob@rattlesnake.com, emacs-devel@gnu.org, miles@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon May 10 20:36:14 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 1BNFdO-0005xV-00 for ; Mon, 10 May 2004 20:36:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNFdO-0007ve-00 for ; Mon, 10 May 2004 20:36:14 +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 1BNFad-0005ka-1k for emacs-devel@quimby.gnus.org; Mon, 10 May 2004 14:33:23 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNFF1-0000y0-Rw for emacs-devel@gnu.org; Mon, 10 May 2004 14:11:03 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNF6P-0005kG-EG for emacs-devel@gnu.org; Mon, 10 May 2004 14:02:43 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNEyp-0003ST-BE for emacs-devel@gnu.org; Mon, 10 May 2004 13:54:19 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1BNEyo-0007y7-RQ; Mon, 10 May 2004 13:54:18 -0400 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on 09 May 2004 20:17:04 -0400) 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:23065 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23065 But it does simplify the explanation of what (face-attribute X :foo) returns (since we've already dealt with the issue of whether it returns the info corresponding to Y or to Y+Z or to Y+Z+default). You have lost me here. How does explaining what (face-attribute X :foo) means relate to this issue? This remapping has no effect on face-attribute. Maybe it doesn't make the current implementation simple, but it at least makes the concept simpler. OTOH, that's assuming that "99% of the remapping [will] just be from X to Y". This 99% assumption assumes that mapping X to (X Y) doesn't work, tho. OTOH, I must say that the most important use of this remapping facility would be to tweak faces in various modes, so mapping X to (X Y) would be the most useful application, if not the only one. So maybe we should have face-addition-alist rather face-remapping-alist so we could just put (region . bold) in order to add bold to the region face. The existing feature is just as simple as either of these, and more powerful. I see no reason to replace it with anything less powerful.