GNU bug report logs -
#3417
c-mode uses font-lock-doc-face for /**
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 3417 in the body.
You can then email your comments to 3417 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3417
; Package
emacs
.
(Fri, 29 May 2009 14:50:03 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 29 May 2009 14:50:04 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Compare :
/**
some file
*/
with
/*
some file
*/
In the first case, font-lock-doc-face is used, in the second
font-lock-comment-face is.
The first example fontifies with doc-face only if there is just "/**" :
"/*", "/** " (with a space) or "/***", for instance, use the standard
comment-face.
This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C++
and obj-C aren't affected, and java also shows this behavior on "/***"" and
"/** "/
This behavior is certainly unexpected : I expect all comments to be
fontified with the same face. Am I right in thinking it's a bug ?
Antoine
[Message part 2 (text/html, inline)]
Reply sent
to
Stefan Monnier <monnier <at> IRO.UMontreal.CA>
:
You have taken responsibility.
(Fri, 29 May 2009 16:05:06 GMT)
Full text and
rfc822 format available.
Notification sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
bug acknowledged by developer.
(Fri, 29 May 2009 16:05:07 GMT)
Full text and
rfc822 format available.
Message #10 received at 3417-done <at> emacsbugs.donarmstrong.com (full text, mbox):
> This behavior is certainly unexpected : I expect all comments to be
> fontified with the same face. Am I right in thinking it's a bug ?
It's a feature. This comment format is used by doxygen (or somesuch).
Stefan
Message #11 received at 3417-done <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Ok, it makes sense.
But how comes "/** " (with a space) isn't fontified, when it is in other
modes like java ? There is no obvious difference between :
/**
* some comment */
and
/**
* some comment */
, but they are fontified differently (the second has a space after the /**).
2009/5/29 Stefan Monnier <monnier <at> iro.umontreal.ca>
> > This behavior is certainly unexpected : I expect all comments to be
> > fontified with the same face. Am I right in thinking it's a bug ?
>
> It's a feature. This comment format is used by doxygen (or somesuch).
>
>
> Stefan
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3417
; Package
emacs
.
(Fri, 29 May 2009 16:55:09 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 29 May 2009 16:55:09 GMT)
Full text and
rfc822 format available.
Message #16 received at 3417 <at> emacsbugs.donarmstrong.com (full text, mbox):
> Compare :
> /**
> some file
> */
> with
> /*
> some file
> */
>
> In the first case, font-lock-doc-face is used, in the second
> font-lock-comment-face is.
>
> The first example fontifies with doc-face only if there is just "/**" :
> "/*", "/** " (with a space) or "/***", for instance, use the standard
> comment-face.
>
> This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C++
> and obj-C aren't affected, and java also shows this behavior on "/***"" and
> "/** "/
>
> This behavior is certainly unexpected : I expect all comments to be
> fontified with the same face. Am I right in thinking it's a bug ?
Have you tried to customize `c-doc-comment-style'?
martin
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3417
; Package
emacs
.
(Fri, 29 May 2009 17:05:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antoine Levitt <antoine.levitt <at> gmail.com>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 29 May 2009 17:05:06 GMT)
Full text and
rfc822 format available.
Message #21 received at 3417 <at> emacsbugs.donarmstrong.com (full text, mbox):
[Message part 1 (text/plain, inline)]
Using your variable as a starting point, I found this :
for gtkdoc (default in C), regexp is :
(c-font-lock-doc-comments "/\\*\\*$" limit
gtkdoc-font-lock-doc-comments)
for javadoc, it's :
(c-font-lock-doc-comments "/\\*\\*" limit
javadoc-font-lock-doc-comments)))))
Gtkdoc manual specifies :
A multiline comment that starts with an additional '*' marks a documentation
block that will be processed by the Gtk-Doc tools.
Shouldn't the regexp for gtkdoc be "/\\*\\*" then ? (without the $)
2009/5/29 martin rudalics <rudalics <at> gmx.at>
> > Compare :
> > /**
> > some file
> > */
> > with
> > /*
> > some file
> > */
> >
> > In the first case, font-lock-doc-face is used, in the second
> > font-lock-comment-face is.
> >
> > The first example fontifies with doc-face only if there is just "/**" :
> > "/*", "/** " (with a space) or "/***", for instance, use the standard
> > comment-face.
> >
> > This is using emacs 23.0.94.1, and was reproduced on emacs22 as well. C++
> > and obj-C aren't affected, and java also shows this behavior on "/***""
> and
> > "/** "/
> >
> > This behavior is certainly unexpected : I expect all comments to be
> > fontified with the same face. Am I right in thinking it's a bug ?
>
> Have you tried to customize `c-doc-comment-style'?
>
> martin
>
[Message part 2 (text/html, inline)]
Information forwarded
to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#3417
; Package
emacs
.
(Fri, 29 May 2009 17:15:05 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
martin rudalics <rudalics <at> gmx.at>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
(Fri, 29 May 2009 17:15:05 GMT)
Full text and
rfc822 format available.
Message #26 received at 3417 <at> emacsbugs.donarmstrong.com (full text, mbox):
> Using your variable as a starting point, I found this :
> for gtkdoc (default in C), regexp is :
> (c-font-lock-doc-comments "/\\*\\*$" limit
> gtkdoc-font-lock-doc-comments)
>
> for javadoc, it's :
> (c-font-lock-doc-comments "/\\*\\*" limit
> javadoc-font-lock-doc-comments)))))
>
> Gtkdoc manual specifies :
>
> A multiline comment that starts with an additional '*' marks a documentation
> block that will be processed by the Gtk-Doc tools.
>
> Shouldn't the regexp for gtkdoc be "/\\*\\*" then ? (without the $)
I don't have the slightest idea about these conventions. That's in the
domain of Mr. Mackenzie. Good evening, Alan ...
martin
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Sat, 27 Jun 2009 14:24:18 GMT)
Full text and
rfc822 format available.
This bug report was last modified 15 years and 355 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.