From: Gemini Lasswell <gazally@runbox.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 31052@debbugs.gnu.org
Subject: bug#31052: 26.0.91; Improve documentation of inline-letevals
Date: Fri, 06 Apr 2018 13:29:23 -0700 [thread overview]
Message-ID: <87o9iw13ks.fsf@runbox.com> (raw)
In-Reply-To: <834lkq2d1w.fsf@gnu.org>
Eli Zaretskii writes:
> When an element of @var{bindings} is just a symbol @var{var}, the
> result of evaluating @var{var} is re-bound to @var{var}.
>
> Is this what caused you to say it "does a completely different thing
> to symbols in the binding list"? Or did I misunderstand?
>
What caused me to say it does a completely different thing is that,
for example, if VAR is bound to 3 in an outside scope, inside:
(let (var) ...)
it will be bound to nil. But inside
(inline-letevals (var) ...)
it will be bound to 3. And if VAR is unbound in the outside scope,
let will bind it to nil and inline-letevals will signal an error.
It's occurred to me while writing this that
(inline-letevals (var) ...)
behaves much like
(let ((var (eval var))) ...)
although I'm not sure how to turn that into a concise explanation for
the documentation.
next prev parent reply other threads:[~2018-04-06 20:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-04-04 0:33 bug#31052: 26.0.91; Improve documentation of inline-letevals Gemini Lasswell
2018-04-04 6:45 ` Eli Zaretskii
2018-04-04 13:18 ` Andy Moreton
2018-04-04 14:06 ` Eli Zaretskii
2018-04-05 1:12 ` Stefan Monnier
2018-04-04 17:10 ` Gemini Lasswell
2018-04-05 9:54 ` Eli Zaretskii
2018-04-06 20:29 ` Gemini Lasswell [this message]
2020-08-22 15:59 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87o9iw13ks.fsf@runbox.com \
--to=gazally@runbox.com \
--cc=31052@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).