From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: bind faces? Date: Sat, 13 May 2006 14:07:57 -0400 Message-ID: <877j4pbxxe.fsf@mit.edu> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147543658 794 80.91.229.2 (13 May 2006 18:07:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 13 May 2006 18:07:38 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 13 20:07:36 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FeyWd-0003A4-Fe for ged-emacs-devel@m.gmane.org; Sat, 13 May 2006 20:07:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeyWc-0006An-Ov for ged-emacs-devel@m.gmane.org; Sat, 13 May 2006 14:07:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeyWP-0006AA-1H for emacs-devel@gnu.org; Sat, 13 May 2006 14:07:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeyWN-00068y-Fz for emacs-devel@gnu.org; Sat, 13 May 2006 14:07:20 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeyWN-00068v-9r for emacs-devel@gnu.org; Sat, 13 May 2006 14:07:19 -0400 Original-Received: from [18.19.6.82] (helo=localhost.localdomain) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FeyYO-00068n-BE for emacs-devel@gnu.org; Sat, 13 May 2006 14:09:24 -0400 Original-Received: by localhost.localdomain (Postfix, from userid 1000) id 36AD7120074; Sat, 13 May 2006 14:07:57 -0400 (EDT) Original-To: "Drew Adams" In-Reply-To: (Drew Adams's message of "Sat, 13 May 2006 10:54:24 -0700") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:54393 Archived-At: "Drew Adams" writes: > I think the answer to this is "no", but I'm not sure: > > Is there some way to get the effect of "binding" a face to a list of face > properties or the properties of another face? That is, do something akin to > this: > > (let ((some-face another-face-or-a-list-of-face-properties)) > (do-something)) > > Wouldn't it be useful to be able to do that? We have `let' for variables and > `flet' (via cl.el) for functions, but nothing for faces, IIUC. (Obviously, a > user could work with face variables, but those are not always available and > their use is generally discouraged.) See face-default-spec, face-spec-set, and the other functions in faces.el.