From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050323 Firefox/1.0.2 Fedora/1.0.2-1.3.1 Description of problem: Syntax highlighting is wrong in C++ mode : variables and function names are incorrectly colored like type names. This works correctly in C-mode, and this even works in C++ mode in Emacs 21.3 shipped with other distributions like Slackware 10, so I believe this is a Fedora-only bug. Version-Release number of selected component (if applicable): emacs-21.3-21.FC3 How reproducible: Always Steps to Reproduce: Open a new buffer, then copy-paste the following code : static int var = 0; void foo() { } Actual Results: Type M-x c-mode. Observe that static is magenta, int and void are green, var is yellow and foo is blue. Now, type M-x c++-mode : var and foo turns green. Expected Results: var should be yellow and foo should be blue. Additional info: Emacs with X11, global-font-lock-mode on, tested with .emacs temporary deleted.
I'm not able to reproduce this either.
I updated cc-mode in emacs-21.4-5 to the latest version, since that is apparently where the problem is. Could you please test that to see if it fixes the problem for you, and if so close this bug as fixed in rawhide. Thanks. [Alternatively if you're not able to test the latest emacs from FC development or rebuild the srpm, you make like to try to install the latest cc-mode release yourself separately and test that. See the tracker bug 158044 for the location.]
Hello, I have updated to emacs-21.4-5 from FC development and my problem is now fixed ! Thanks ! This bug can be closed now.
Thanks for testing it.