GNU bug report logs -
#13612
24.3.50; Incorrect syntax highlighting in cc-mode
Previous Next
Reported by: Dima Kogan <dima <at> secretsauce.net>
Date: Sun, 3 Feb 2013 00:12:02 UTC
Severity: minor
Tags: notabug
Found in version 24.3.50
Done: Glenn Morris <rgm <at> gnu.org>
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 13612 in the body.
You can then email your comments to 13612 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#13612
; Package
emacs
.
(Sun, 03 Feb 2013 00:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Dima Kogan <dima <at> secretsauce.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sun, 03 Feb 2013 00:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I'm observing incorrect highlighting of some C code I'm looking at. This
issue appears to have been around at least since emacs23.
Make a file tst.c with the following in it:
void f(void)
{
filter_R( dt );
filter_t( dt );
a = b;
}
I'm observing the filter_R line being colored differently from the
filter_t line. Everything on the filter_R line is using the 'default'
face. 'filter_t' uses font-lock-type-face. 'dt' on the filter_t line
uses font-lock-variable-name-face.
In GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
of 2012-12-31 on dex, modified by Debian
(emacs-snapshot package, version 2:20121231-1)
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
System Description: Debian GNU/Linux 7.0 (wheezy)
Configured using:
`configure --build x86_64-linux-gnu --host x86_64-linux-gnu
--prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
--localstatedir=/var --infodir=/usr/share/info --mandir=/usr/share/man
--with-pop=yes
--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.3.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3.50/site-lisp:/usr/share/emacs/site-lisp
--without-compress-info --with-crt-dir=/usr/lib/x86_64-linux-gnu/
--with-x=yes --with-x-toolkit=lucid'
Important settings:
value of $LC_ALL: C
value of $LANG: C
locale-coding-system: nil
default enable-multibyte-characters: t
Major mode: C/l
Minor modes in effect:
tooltip-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug sendmail gnus-util message cl-macs gv
format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse
rfc2231 rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mailabbrev
mail-utils gmm-utils mailheader reporter etags ring info misearch
multi-isearch pp wid-edit descr-text reposition jka-compr find-func
thai-util thai-word mule-util help-mode help-fns crm thingatpt cc-langs
cl nadvice cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list newcomment lisp-mode
register page menu-bar rfn-eshadow timer select scroll-bar mouse
jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face macroexp files text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind inotify
dynamic-setting system-font-setting font-render-setting x-toolkit x
multi-tty emacs)
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#13612
; Package
emacs,cc-mode
.
(Sun, 03 Feb 2013 03:50:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 13612 <at> debbugs.gnu.org (full text, mbox):
> From: Dima Kogan <dima <at> secretsauce.net>
> Date: Sat, 02 Feb 2013 15:35:17 -0800
>
> void f(void)
> {
> filter_R( dt );
> filter_t( dt );
>
> a = b;
> }
>
>
>
> I'm observing the filter_R line being colored differently from the
> filter_t line. Everything on the filter_R line is using the 'default'
> face. 'filter_t' uses font-lock-type-face.
The "foo_t" tokens are taken as data types, AFAIK, to support size_t,
off_t, etc.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#13612
; Package
emacs,cc-mode
.
(Mon, 04 Feb 2013 21:04:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 13612 <at> debbugs.gnu.org (full text, mbox):
> On Sun, 03 Feb 2013 05:48:41 +0200
> Eli Zaretskii <eliz <at> gnu.org> wrote:
>
> > From: Dima Kogan <dima <at> secretsauce.net>
> > Date: Sat, 02 Feb 2013 15:35:17 -0800
> >
> > void f(void)
> > {
> > filter_R( dt );
> > filter_t( dt );
> >
> > a = b;
> > }
> >
> > I'm observing the filter_R line being colored differently from the
> > filter_t line. Everything on the filter_R line is using the
> > 'default' face. 'filter_t' uses font-lock-type-face.
>
> The "foo_t" tokens are taken as data types, AFAIK, to support size_t,
> off_t, etc.
Ah, that makes sense now. Ideally emacs should be able to separate the two
cases, but maybe this is not significant enough to care. Thoughts? Should I
close this bug?
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#13612
; Package
emacs,cc-mode
.
(Mon, 04 Feb 2013 21:17:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 13612 <at> debbugs.gnu.org (full text, mbox):
> Date: Mon, 4 Feb 2013 12:59:44 -0800
> From: Dima Kogan <dima <at> secretsauce.net>
>
> Should I close this bug?
No, I suggest to wait for a word from the maintainer of CC Mode.
Information forwarded
to
bug-gnu-emacs <at> gnu.org, bug-cc-mode <at> gnu.org
:
bug#13612
; Package
emacs,cc-mode
.
(Tue, 05 Feb 2013 14:57:03 GMT)
Full text and
rfc822 format available.
Message #17 received at 13612 <at> debbugs.gnu.org (full text, mbox):
Hi, Dima!
On Mon, Feb 04, 2013 at 12:59:44PM -0800, Dima Kogan wrote:
> > On Sun, 03 Feb 2013 05:48:41 +0200
> > Eli Zaretskii <eliz <at> gnu.org> wrote:
> > > From: Dima Kogan <dima <at> secretsauce.net>
> > > Date: Sat, 02 Feb 2013 15:35:17 -0800
> > > void f(void)
> > > {
> > > filter_R( dt );
> > > filter_t( dt );
> > > a = b;
> > > }
> > > I'm observing the filter_R line being colored differently from the
> > > filter_t line. Everything on the filter_R line is using the
> > > 'default' face. 'filter_t' uses font-lock-type-face.
> > The "foo_t" tokens are taken as data types, AFAIK, to support size_t,
> > off_t, etc.
> Ah, that makes sense now. Ideally emacs should be able to separate the two
> cases, ......
Do M-x customize-variable <CR> c-font-lock-extra-types, remove the entry
"\sw+_t", then reinitialise C Mode like it says. The false fontification
should then be gone.
> ..... but maybe this is not significant enough to care. Thoughts?
> Should I close this bug?
Yes please, close it as "not a bug". Thanks!
--
Alan Mackenzie (Nuremberg, Germany).
Added tag(s) notabug.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 05 Feb 2013 17:04:01 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
13612 <at> debbugs.gnu.org and Dima Kogan <dima <at> secretsauce.net>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Tue, 05 Feb 2013 17:04:01 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
.
(Wed, 06 Mar 2013 12:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.