From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: bind faces? Date: Sun, 14 May 2006 09:52:52 +0900 Message-ID: <878xp5s9zv.fsf@catnip.gol.com> References: Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147568001 24684 80.91.229.2 (14 May 2006 00:53:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 00:53:21 +0000 (UTC) Cc: Emacs-Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 02:53:18 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 1Ff4rD-0006ow-Ns for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 02:53:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff4rD-0005a0-EE for ged-emacs-devel@m.gmane.org; Sat, 13 May 2006 20:53:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ff4qz-0005ZK-9k for emacs-devel@gnu.org; Sat, 13 May 2006 20:53:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ff4qx-0005Yo-FE for emacs-devel@gnu.org; Sat, 13 May 2006 20:53:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff4qx-0005Yl-CN for emacs-devel@gnu.org; Sat, 13 May 2006 20:52:59 -0400 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1Ff4t0-00042C-DR; Sat, 13 May 2006 20:55:06 -0400 Original-Received: from 203-216-102-135.dsl.gol.ne.jp ([203.216.102.135] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1Ff4qt-0003bt-1t; Sun, 14 May 2006 09:52:55 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 27B8B2F56; Sun, 14 May 2006 09:52:52 +0900 (JST) Original-To: "Drew Adams" System-Type: i686-pc-linux-gnu In-Reply-To: (Drew Adams's message of "Sat, 13 May 2006 10:54:24 -0700") Original-Lines: 20 X-Abuse-Complaints: abuse@gol.com 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:54412 Archived-At: "Drew Adams" writes: > 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.) Why exactly do you want to do this? [FWIW, you can do it very easily with my `face remapping' patch -- it ends up being just a normal `let' -- but that's part of Emacs yet: (let ((face-remapping-alist (cons '(some-face . bold) face-remapping-alist))) (read-string "blah: ")) ] -Miles -- Somebody has to do something, and it's just incredibly pathetic that it has to be us. -- Jerry Garcia