From: Matthieu Moy <MatthieuNOSPAM.Moy@imag.fr.invalid>
Subject: Re: nested backquotes
Date: Sat, 21 May 2005 11:51:05 +0200 [thread overview]
Message-ID: <vpqekc0ykja.fsf@ecrins.imag.fr> (raw)
In-Reply-To: 871x814pgr.fsf-monnier+gnu.emacs.help@gnu.org
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> With the "capture" version, you can also do
>
>> (tla--lambda-with-capture (x y z)
>> (... foo ... (capture foo) ... (capture (current-buffer))))
>
> Could you explain what this does?
It expands to something like
`(lambda (x y z)
(let ((tla1 foo)
(tla2 (current-buffer)))
(funcall (lambda () (... foo ... tla1 ... tla2)))))
So, we still have the backquoted lambda, but containing only a let and
a funcall, the actual body being byte-compiled.
The translation from our backquote + comma version is roughly
s/`(lambda/(tla--lambda-with-capture/g
s/,.*/(capture \1)/
--
Matthieu
next prev parent reply other threads:[~2005-05-21 9:51 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
2005-05-20 20:25 ` Stefan Monnier
2005-05-21 9:51 ` Matthieu Moy [this message]
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=vpqekc0ykja.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.