[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
- Use the new let-opt macro in place of pcase-let in lisp-mode.el, Oleh Krehel, 2015/05/18
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Stefan Monnier, 2015/05/18
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Oleh Krehel, 2015/05/18
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Stefan Monnier, 2015/05/18
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Oleh Krehel, 2015/05/19
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el,
Stefan Monnier <=
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Oleh Krehel, 2015/05/20
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Stefan Monnier, 2015/05/20
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Oleh Krehel, 2015/05/20
- Re: Use the new let-opt macro in place of pcase-let in lisp-mode.el, Stefan Monnier, 2015/05/20