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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16829 in the body.
You can then email your comments to 16829 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#16829; Package emacs. (Fri, 21 Feb 2014 10:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Helmut Eller <eller.helmut <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 21 Feb 2014 10:55:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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)




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Fri, 21 Feb 2014 17:44:02 GMT) Full text and rfc822 format available.

Notification sent to Helmut Eller <eller.helmut <at> gmail.com>:
bug acknowledged by developer. (Fri, 21 Feb 2014 17:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 16829-done <at> debbugs.gnu.org (full text, mbox):

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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16829; Package emacs. (Fri, 21 Feb 2014 17:56:01 GMT) Full text and rfc822 format available.

Message #13 received at 16829 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: 16829 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>, 
 Helmut Eller <eller.helmut <at> gmail.com>
Subject: Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
Date: Fri, 21 Feb 2014 18:55:04 +0100
On Fri, Feb 21, 2014 at 6:43 PM, Stefan Monnier
<monnier <at> iro.umontreal.ca> wrote:

> Instead you can use

>     (declare (compiler-macro (lambda (form) (if arg1 form toto))))

gv-setter, gv-expander and compiler-macro aren't really documented (at
least, not on (elisp) "12.13 The `declare' Form").




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16829; Package emacs. (Sat, 22 Feb 2014 03:41:02 GMT) Full text and rfc822 format available.

Message #16 received at 16829-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juanma Barranquero <lekktu <at> gmail.com>
Cc: Helmut Eller <eller.helmut <at> gmail.com>, 16829-done <at> debbugs.gnu.org
Subject: Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
Date: Fri, 21 Feb 2014 22:40:01 -0500
> gv-setter, gv-expander and compiler-macro aren't really documented (at
> least, not on (elisp) "12.13 The `declare' Form").

I just added some doc for it in functions.texi.


        Stefan




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#16829; Package emacs. (Sat, 22 Feb 2014 03:49:01 GMT) Full text and rfc822 format available.

Message #19 received at 16829-done <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Helmut Eller <eller.helmut <at> gmail.com>, 16829-done <at> debbugs.gnu.org
Subject: Re: bug#16829: 24.3.50; define-compiler-macro poorly indented
Date: Sat, 22 Feb 2014 04:47:25 +0100
Thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 22 Mar 2014 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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