[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Understanding macroexp.el
From: |
Stefan Monnier |
Subject: |
Re: Understanding macroexp.el |
Date: |
Wed, 18 Nov 2015 08:40:01 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> Would it make sense to install the following:
>
> *** /tmp/ediff139941AX 2015-11-18 11:12:07.788012282 +0100
> --- /home/micha/software/emacs/lisp/emacs-lisp/macroexp.el 2015-11-18
> 10:47:41.041352909 +0100
> ***************
> *** 331,337 ****
> (cond
> ((null bindings) exp)
> ((eq 'let* (car-safe exp)) `(let* (,@bindings ,@(cadr exp)) ,@(cddr
> exp)))
> ! (t `(let* ,bindings ,exp))))
>
> (defun macroexp-if (test then else)
> "Return an expression equivalent to `(if ,TEST ,THEN ,ELSE)."
> --- 331,337 ----
> (cond
> ((null bindings) exp)
> ((eq 'let* (car-safe exp)) `(let* (,@bindings ,@(cadr exp)) ,@(cddr
> exp)))
> ! (t `(let* ,bindings ,@(macroexp-unprogn exp)))))
>
> (defun macroexp-if (test then else)
> "Return an expression equivalent to `(if ,TEST ,THEN ,ELSE)."
That'd be fine, I think, yes. It probably won't make much difference,
if any, tho.
Stefan