emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Emacs-diffs] master 1758951: lisp/let-alist.el (let-alist): Evaluat


From: Stefan Monnier
Subject: Re: [Emacs-diffs] master 1758951: lisp/let-alist.el (let-alist): Evaluate `alist' only once.
Date: Thu, 18 Dec 2014 23:33:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]