From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Buffer-local faces Date: Mon, 3 May 2004 19:27:00 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040503232700.GB9451@fencepost> References: <20040503130350.GA1929@fencepost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083627090 452 80.91.224.253 (3 May 2004 23:31:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 3 May 2004 23:31:30 +0000 (UTC) Cc: emacs-devel@gnu.org, Miles Bader Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 01:31:25 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 1BKmuD-0007gD-00 for ; Tue, 04 May 2004 01:31:25 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKmuD-00017V-00 for ; Tue, 04 May 2004 01:31:25 +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 1BKmqq-00046s-RO for emacs-devel@quimby.gnus.org; Mon, 03 May 2004 19:27:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKmqW-0003zS-Ag for emacs-devel@gnu.org; Mon, 03 May 2004 19:27:36 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKmpx-0003cZ-5q for emacs-devel@gnu.org; Mon, 03 May 2004 19:27:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKmpw-0003cQ-OZ for emacs-devel@gnu.org; Mon, 03 May 2004 19:27:00 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.24) id 1BKmpw-0004fy-Gr; Mon, 03 May 2004 19:27:00 -0400 Original-To: Stefan Monnier Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Blat: Foop 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:22666 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22666 On Mon, May 03, 2004 at 06:42:10PM -0400, Stefan Monnier wrote: > > (FACE NEW-FACE MERGE-FACE...), > > which causes NEW-FACE to be used where FACE normally would. > > If present, MERGE-FACE... are merged during display with NEW-FACE. > > How often would you need MERGE-FACE(s) ? I ask because it seems unnecessary > since you can also use a new face with a :inherit slot instead, right? My thought was that this would be convenient for people that want to just tweak faces in a mode-hook, and allow them to do it without making a new face. It's annoying to always have to name everything. Implementation-wise I don't think there's any real cost to allowing it (the code to merge from a list of faces is already there for the use of :inherit). 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. -Miles -- `The suburb is an obsolete and contradictory form of human settlement'