From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthieu Moy Newsgroups: gmane.emacs.help Subject: Re: nested backquotes Date: Fri, 20 May 2005 18:05:37 +0200 Organization: IMAG Message-ID: References: <1116431406.143574.87990@g14g2000cwa.googlegroups.com> <87u0kx53fn.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1116605368 2857 80.91.229.2 (20 May 2005 16:09:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 May 2005 16:09:28 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 20 18:09:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DZA1x-0008Hh-Tc for geh-help-gnu-emacs@m.gmane.org; Fri, 20 May 2005 18:07:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DZA4q-0003ER-29 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 May 2005 12:10:20 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!univ-lyon1.fr!news.ujf-grenoble.fr!news.imag.fr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: ecrins.imag.fr Original-X-Trace: trompette.imag.fr 1116605338 11111 129.88.43.124 (20 May 2005 16:08:58 GMT) Original-X-Complaints-To: abuse@imag.fr Original-NNTP-Posting-Date: Fri, 20 May 2005 16:08:58 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:ROKmbyltzo0u6EcYXbu2orKt72M= Original-Xref: shelby.stanford.edu gnu.emacs.help:131404 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:26863 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:26863 Stefan Monnier writes: > Maybe I'm way off-base, but lexical-let sounds like a better alternative. > When capturing things like the current buffer, you can just replace > > `(lambda (...) ... ,(current-buffer) ...) > with > (lexical-let ((buf (current-buffer))) > (lambda (...) ... buf ...)) With the "capture" version, you can also do (tla--lambda-with-capture (x y z) (... foo ... (capture foo) ... (capture (current-buffer)))) which I find more readable. (I've started to look at the lexical-let option too) Thanks for your help anyway. -- Matthieu