From: Philipp Stephani <p.stephani2@gmail.com>
To: Roland Winkler <winkler@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: let-bind a varlist only known at run time
Date: Mon, 05 Jun 2017 13:44:14 +0000 [thread overview]
Message-ID: <CAArVCkQawr7TTQy3W6MmHUf94RazJZtvNeJtpeT+GRDdPMHKhA@mail.gmail.com> (raw)
In-Reply-To: <28921.59572.342625.22836@gargle.gargle.HOWL>
Roland Winkler <winkler@gnu.org> schrieb am So., 4. Juni 2017 um 23:00 Uhr:
> Normally the varlist for the special let form is hardcoded. Is it
> possible to specify the varlist only at runtime?
>
> The usage scenario I have in mind is that a user variable foo-alist
> may hold an alist that becomes the varlist for the let-binding. So
> it's not known at compile time which bindings a user might want to
> specify in foo-alist. Also, it might be hard to predict an
> exhaustive list of "candidate variables" a user might want to put into
> foo-alist (and certainly such a list would be hard to maintain).
>
Have you checked `let-alist'? Maybe it already does what you want.
next prev parent reply other threads:[~2017-06-05 13:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-04 20:43 let-bind a varlist only known at run time Roland Winkler
2017-06-05 2:49 ` Michael Heerdegen
2017-06-05 3:08 ` Roland Winkler
2017-07-12 21:59 ` Michael Heerdegen
2017-07-12 23:09 ` Roland Winkler
2017-06-05 13:44 ` Philipp Stephani [this message]
2017-06-05 15:07 ` Roland Winkler
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=CAArVCkQawr7TTQy3W6MmHUf94RazJZtvNeJtpeT+GRDdPMHKhA@mail.gmail.com \
--to=p.stephani2@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=winkler@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.
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).