GNU bug report logs - #12298
24.2; wrong font locking for < in comments

Previous Next

Packages: emacs, cc-mode;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Wed, 29 Aug 2012 01:55:01 UTC

Severity: minor

Tags: notabug

Found in versions 27.0.50, 24.2

Done: Stefan Kangas <stefan <at> marxist.se>

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 12298 in the body.
You can then email your comments to 12298 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-cc-mode <at> gnu.org, bug-gnu-emacs <at> gnu.org:
bug#12298; Package emacs. (Wed, 29 Aug 2012 01:55:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-cc-mode <at> gnu.org, bug-gnu-emacs <at> gnu.org. (Wed, 29 Aug 2012 01:55:02 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; wrong font locking for < in comments
Date: Wed, 29 Aug 2012 09:52:54 +0800
[Message part 1 (text/plain, inline)]
GNU Emacs 24.2.1 (i386-apple-darwin12.1.0, Carbon Version 1.6.0 AppKit 1187)
 of 2012-08-27

Open the attached k.java file and see the 4 <'s fontified in warning
face.

[k.java (text/plain, attachment)]
[cc.png (image/png, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#12298; Package emacs,cc-mode. (Sun, 06 Oct 2019 11:54:01 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Leo <sdl.web <at> gmail.com>
Cc: 12298 <at> debbugs.gnu.org
Subject: Re: bug#12298: 24.2; wrong font locking for < in comments
Date: Sun, 6 Oct 2019 13:53:32 +0200
found 12298 27.0.50
thanks

Leo <sdl.web <at> gmail.com> writes:

> GNU Emacs 24.2.1 (i386-apple-darwin12.1.0, Carbon Version 1.6.0 AppKit 1187)
>  of 2012-08-27
>
> Open the attached k.java file and see the 4 <'s fontified in warning
> face.
>
> /**
>  * Returns a new object with cropped image data. Implementations may keep a reference to the
>  * original data rather than a copy. Only callable if isCropSupported() is true.
>  *
>  * @param left The left coordinate, 0 <= left < getWidth().
>  * @param top The top coordinate, 0 <= top <= getHeight().
>  * @param width The width of the rectangle to crop.
>  * @param height The height of the rectangle to crop.
>  * @return A cropped version of this object.
>  */
> public LuminanceSource crop(int left, int top, int width, int height) {
>     throw new UnsupportedOperationException("This luminance source does not support cropping.");
> }

I can reproduce this on current master.

Best regards,
Stefan Kangas




bug Marked as found in versions 27.0.50. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 06 Oct 2019 11:54:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#12298; Package emacs,cc-mode. (Sun, 06 Oct 2019 12:14:02 GMT) Full text and rfc822 format available.

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

From: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 12298 <at> debbugs.gnu.org, Leo <sdl.web <at> gmail.com>
Subject: Re: bug#12298: 24.2; wrong font locking for < in comments
Date: Sun, 06 Oct 2019 14:13:04 +0200
This is Javadoc and the content of Javadoc is HTML plus additional
markup using keywords starting with "@", see
<https://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#format>.
So it seems warning face is correct here?




Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#12298; Package emacs,cc-mode. (Sun, 06 Oct 2019 12:44:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: 12298 <at> debbugs.gnu.org, Leo <sdl.web <at> gmail.com>
Subject: Re: bug#12298: 24.2; wrong font locking for < in comments
Date: Sun, 6 Oct 2019 14:43:01 +0200
Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net> writes:

> This is Javadoc and the content of Javadoc is HTML plus additional
> markup using keywords starting with "@", see
> <https://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#format>.
> So it seems warning face is correct here?

Ah, you're right.  To put the literal "<" character, one has to type
"{@literal <}", although it seems like "&lt;" will also work.  (Sorry
for the confusion; I haven't touched Java in a decade or more...)

If no one objects, I'll just close this as notabug.

Best regards,
Stefan Kangas




Added tag(s) notabug. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Sun, 06 Oct 2019 12:45:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org:
bug#12298; Package emacs,cc-mode. (Mon, 14 Oct 2019 12:14:02 GMT) Full text and rfc822 format available.

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

From: Stefan Kangas <stefan <at> marxist.se>
To: Benjamin Riefenstahl <b.riefenstahl <at> turtle-trading.net>
Cc: 12298 <at> debbugs.gnu.org, Leo <sdl.web <at> gmail.com>
Subject: Re: bug#12298: 24.2; wrong font locking for < in comments
Date: Mon, 14 Oct 2019 14:13:12 +0200
tags 12298 + notabug
close 12298
quit

Stefan Kangas <stefan <at> marxist.se> writes:

> > This is Javadoc and the content of Javadoc is HTML plus additional
> > markup using keywords starting with "@", see
> > <https://www.oracle.com/technetwork/java/javase/documentation/index-137868.html#format>.
> > So it seems warning face is correct here?
>
> Ah, you're right.  To put the literal "<" character, one has to type
> "{@literal <}", although it seems like "&lt;" will also work.  (Sorry
> for the confusion; I haven't touched Java in a decade or more...)
>
> If no one objects, I'll just close this as notabug.

No objections within 8 days.  Closing.

Best regards,
Stefan Kangas




bug closed, send any further explanations to 12298 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Mon, 14 Oct 2019 12:14:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 11 Nov 2019 12:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 164 days ago.

Previous Next


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