bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

font-lock in c++-mode.


From: Lute Kamstra
Subject: font-lock in c++-mode.
Date: Tue, 15 May 2001 16:33:33 +0200 (CEST)

This bug report will be sent to the Free Software Foundation,
 not to your local site managers!!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

In GNU Emacs 20.3.1 (mips-sgi-irix6.2, Motif)
 of Thu Sep  3 1998 on zeus
configured using `configure  --with-x-toolkit=motif --with-gcc=no 
--prefix=/usr/local/emacs --with-pop'

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

After launching emacs from a shell (using X11):
  
  emacs new_file.cc &

where new_file.cc is a nonexisting file, I end up in c++-mode.  Then I
type the following:

/*/ Bla, bla and bla */
/* As opposed to bla, bla and bla */

These lines are each valid c++ comments. However, the syntax
highlighting if different. After '/*/' in the first line the comment
font changes back to normal, leaving the rest ' Bla, bla and bla */'
in normal font. In the second line, the entire comment '/* As opposed
to bla, bla and bla */' is shown in comment font. I think this is
inconsistent.

I tried this in version 20.7 (linux) of emacs as well and also without
using my .emacs startup file (-q option). They all show the same
behaviour.

Recent input:
/ * / SPC B l a , SPC b l a SPC a n d SPC b l a SPC 
* / return / * SPC A s SPC o p p o s e d SPC t o SPC 
b l a , SPC b l a SPC a n d SPC b l a SPC * / return 
menu-bar help-menu report-emacs-bug

Recent messages:
For information about the GNU Project and its goals, type C-h C-p.
new_file.cc has auto save data; consider M-x recover-file
Loading cc-mode...
Loading cc-mode...done
Loading outline...
Loading outline...done
Loading regexp-opt...
Loading regexp-opt...done
Loading emacsbug...
Loading emacsbug...done

I hope you find this report useful.

Kind regards,

  Lute Kamstra.

----------------------------------------------------------------------
Lute Kamstra                                      "Mailed from Emacs, 
CWI department PNA4                               the One True Editor"
Office M233
email: address@hidden                    phone: (+31) 20 592 4214
----------------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]