From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: bind faces? Date: Sat, 13 May 2006 18:02:00 -0700 Message-ID: References: <878xp5s9zv.fsf@catnip.gol.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147568548 25682 80.91.229.2 (14 May 2006 01:02:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 14 May 2006 01:02:28 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 14 03:02:26 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 1Ff500-0007m7-Hm for ged-emacs-devel@m.gmane.org; Sun, 14 May 2006 03:02:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff500-0002C9-7y for ged-emacs-devel@m.gmane.org; Sat, 13 May 2006 21:02:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ff4zp-00029k-52 for emacs-devel@gnu.org; Sat, 13 May 2006 21:02:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ff4zn-00029Y-40 for emacs-devel@gnu.org; Sat, 13 May 2006 21:02:08 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ff4zn-00029V-1T for emacs-devel@gnu.org; Sat, 13 May 2006 21:02:07 -0400 Original-Received: from [148.87.113.118] (helo=rgminet01.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.52) id 1Ff51r-00053x-Gr for emacs-devel@gnu.org; Sat, 13 May 2006 21:04:15 -0400 Original-Received: from rgmsgw300.us.oracle.com (rgmsgw300.us.oracle.com [138.1.186.49]) by rgminet01.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id k4E124Xf014188 for ; Sat, 13 May 2006 19:02:04 -0600 Original-Received: from dradamslap (dhcp-amer-csvpn-gw1-141-144-64-240.vpn.oracle.com [141.144.64.240]) by rgmsgw300.us.oracle.com (Switch-3.1.7/Switch-3.1.7) with SMTP id k4E123ii012179 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 13 May 2006 19:02:04 -0600 Original-To: "Emacs-Devel" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <878xp5s9zv.fsf@catnip.gol.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE 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:54413 Archived-At: Why exactly do you want to do this? I thought I explained that. As an analogy to binding variables with `let' and functions with `flet', we would bind faces. Why does anyone want to bind variables and functions, as opposed to using `unwind-protect', assigning new definitions, and restoring afterward? FWIW, you can do it very easily with my `face remapping' patch -- it ends up being just a normal `let' -- but that's [not?] part of Emacs yet: (let ((face-remapping-alist (cons '(some-face . bold) face-remapping-alist))) (read-string "blah: ")) Sounds promising (though I'm not sure how it works or just what it does). Never heard of it. Will it be in Emacs 22? 23? Where is it available in the meantime?