all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matthieu Moy <MatthieuNOSPAM.Moy@imag.fr.invalid>
Subject: Re: nested backquotes
Date: Fri, 20 May 2005 18:05:37 +0200	[thread overview]
Message-ID: <vpqis1d51da.fsf@ecrins.imag.fr> (raw)
In-Reply-To: 87u0kx53fn.fsf-monnier+gnu.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> 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

  reply	other threads:[~2005-05-20 16:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-18 15:13 nested backquotes Matthieu Moy
2005-05-18 15:50 ` rgb
2005-05-18 16:19   ` Matthieu Moy
2005-05-18 18:21     ` Thierry Emery
2005-05-20 15:16     ` Stefan Monnier
2005-05-20 15:24     ` Stefan Monnier
2005-05-20 16:05       ` Matthieu Moy [this message]
2005-05-20 20:25         ` Stefan Monnier
2005-05-21  9:51           ` Matthieu Moy
2005-05-21 10:02             ` Matthieu Moy
  -- strict thread matches above, loose matches on Subject: below --
2003-09-24 14:03 Carlos Ungil
2003-09-24 14:22 ` Carlos Ungil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vpqis1d51da.fsf@ecrins.imag.fr \
    --to=matthieunospam.moy@imag.fr.invalid \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.