GNU bug report logs - #16829
24.3.50; define-compiler-macro poorly indented

Previous Next

Package: emacs;

Reported by: Helmut Eller <eller.helmut <at> gmail.com>

Date: Fri, 21 Feb 2014 10:55:02 UTC

Severity: minor

Found in version 24.3.50

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#16829: closed (24.3.50; define-compiler-macro poorly indented)
Date: Fri, 21 Feb 2014 17:44:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 21 Feb 2014 12:43:02 -0500
with message-id <jwv4n3sgyeh.fsf-monnier+emacsbugs <at> gnu.org>
and subject line Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
has caused the debbugs.gnu.org bug report #16829,
regarding 24.3.50; define-compiler-macro poorly indented
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
16829: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16829
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Helmut Eller <eller.helmut <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.3.50; define-compiler-macro poorly indented
Date: Fri, 21 Feb 2014 11:54:15 +0100
cl-define-compiler-macro is missing indentation specs and therefore
looks so:

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


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Helmut Eller <eller.helmut <at> gmail.com>
Cc: 16829-done <at> debbugs.gnu.org
Subject: Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
Date: Fri, 21 Feb 2014 12:43:02 -0500
> 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


This bug report was last modified 11 years and 111 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.