|
From: | Stefan Monnier |
Subject: | bug#16829: 24.3.50; define-compiler-macro poorly indented |
Date: | Fri, 21 Feb 2014 12:43:02 -0500 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
> cl-define-compiler-macro is missing indentation specs and therefore > looks so: > (cl-define-compiler-macro foo (&whole x) > x) Indeed. I just installed a patch in trunk which should fix it. This said, it's probably best not to use cl-define-compiler-macro. Instead you can use (defun my-foo (arg1 toto) (declare (compiler-macro (lambda (form) (if arg1 form toto)))) (my-foo-code)) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |