GNU bug report logs - #8348
CC Mode 5.31.8; c-end-of-macro does not handle macro with comments spanning lines

Previous Next

Packages: cc-mode, emacs;

Reported by: Darren Hoo <darren.hoo <at> gmail.com>

Date: Sat, 26 Mar 2011 15:25:02 UTC

Severity: normal

Tags: notabug

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: npostavs <at> users.sourceforge.net
To: Darren Hoo <darren.hoo <at> gmail.com>
Cc: 8348 <at> debbugs.gnu.org
Subject: bug#8348: CC Mode 5.31.8; c-end-of-macro does not handle macro with comments spanning lines
Date: Thu, 30 Jun 2016 23:30:21 -0400
tags 8348 notabug
quit

Darren Hoo <darren.hoo <at> gmail.com> writes:

> #define AA 1 /*  !
>               *  a comment
> 			  *  eags lines
> 			  */!
>
> c-end-of-macro move to the first ! instead of the second !

AFAICT this is not a bug, the macro really does end on the first line,
i.e., the macro definition does not include the comment.  One might
argue that the macro ends where the comment starts (first "/"), not
inside it, but the docstring of c-end-of-macro does say it goes to the
end of line.




This bug report was last modified 8 years and 94 days ago.

Previous Next


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