emacs-devel
[Top][All Lists]
Advanced

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

Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el


From: Stefan Monnier
Subject: Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el
Date: Tue, 19 May 2015 22:03:41 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

>   (progv (mapcar #'car bindings)
>       (mapcar (lambda (x) (eval (cadr x))) bindings)
>     (funcall
>      `(lambda ()
>         (macroexpand-all
>          '(progn
>             ,@body))))))

Hmm?  Why this funcall+backquote+lambda business?
[ Oh, and be careful to pass macroexpand-all-environment as second arg
  to macroexpand-all.  ]

> The code in lisp-mode.el works fine, but there's still one thing on
> which I'm not sure: what should happen if an `eval-when-compile' wrapper
> is omitted?

Same as what happens in your earlier let-opt when the `opt' is omitted.


        Stefan



reply via email to

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