unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* let-bind a varlist only known at run time
@ 2017-06-04 20:43 Roland Winkler
  2017-06-05  2:49 ` Michael Heerdegen
  2017-06-05 13:44 ` Philipp Stephani
  0 siblings, 2 replies; 7+ messages in thread
From: Roland Winkler @ 2017-06-04 20:43 UTC (permalink / raw)
  To: help-gnu-emacs

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).

On the other hand, I expect that efficiency is not an issue for the
body appearing in let.  So if there is nothing else I could
construct the complete let-form at runtime and pass it on to `eval'.
But maybe there is a better solution...

Thanks!

Roland



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-07-12 23:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2017-06-05 15:07   ` Roland Winkler

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).