Subject: bug#16829: closed (Re: bug#16829: 24.3.50; define-compiler-macro poorly indented)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 21 Feb 2014 17:44:02 +0000

Your bug report

#16829: 24.3.50; define-compiler-macro poorly indented

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
16829: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16829
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
From: Stefan Monnier <[email-masked]>
To: Helmut Eller <[email-masked]>
Cc: [email-masked]
Date: Fri, 21 Feb 2014 12:43:02 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

> 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

Subject: 24.3.50; define-compiler-macro poorly indented
From: Helmut Eller <[email-masked]>
To: [email-masked]
Date: Fri, 21 Feb 2014 11:54:15 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

cl-define-compiler-macro is missing indentation specs and therefore
looks so:

(cl-define-compiler-macro foo (&whole x)
			  x)