[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 1758951: lisp/let-alist.el (let-alist): Evaluat
Re: [Emacs-diffs] master 1758951: lisp/let-alist.el (let-alist): Evaluate `alist' only once.
Fri, 19 Dec 2014 10:59:40 -0200
* I didn't KNOW about that
2014-12-19 10:59 GMT-02:00 Artur Malabarba <address@hidden>:
> Thanks, I didn't about that. Unfortunately, it seems to not be
> available on 24.2 or earlier. (at least, I couldn't find it)
> I want to develop this version in parallel with the Elpa version for
> now, while there are still a couple of features I'm planning to add.
> But I'll add it in later (before release).
> 2014-12-19 2:33 GMT-02:00 Stefan Monnier <address@hidden>:
>>> + (let ((var (gensym "let-alist")))
>>> + `(let ((,var ,alist)
>> You can use `macroexp-let2' for that (with the extra benefit that it
>> will skip the `let' if `alist' is already a trivial expression such as
>> a simple variable).