GNU bug report logs - #11986
24.1; cc-mode not font lock objc methods with leading _

Previous Next

Package: emacs;

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

Date: Thu, 19 Jul 2012 10:32:02 UTC

Severity: normal

Found in version 24.1

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

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 11986 in the body.
You can then email your comments to 11986 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-gnu-emacs <at> gnu.org:
bug#11986; Package emacs. (Thu, 19 Jul 2012 10:32: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-gnu-emacs <at> gnu.org. (Thu, 19 Jul 2012 10:32: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.1; cc-mode not font lock objc methods with leading _
Date: Thu, 19 Jul 2012 18:25:01 +0800
Put the following objc method declaration¹ in an objc-mode buffer:

    - (DDMathStringToken *)_parseNumberWithError:(NSError **)error;

You can see _parseNumberWithError not highlighted in
font-lock-function-name-face. This may be due to c-symbol-start not
containing _.

Leo

Footnotes: 
¹  Taken from https://github.com/davedelong/DDMathParser




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11986; Package emacs. (Fri, 20 Jul 2012 05:22:02 GMT) Full text and rfc822 format available.

Message #8 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: Re: bug#11986: 24.1; cc-mode not font lock objc methods with leading _
Date: Fri, 20 Jul 2012 13:14:57 +0800
I plan to install the following fix later day.

diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index 493f3db0..78be8ac2 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -578,7 +578,7 @@ (c-lang-defconst c-symbol-start
 operator at the top level."
   t    (concat "[" c-alpha "_]")
   java (concat "[" c-alpha "_@]")
-  objc (concat "[" c-alpha "@]")
+  objc (concat "[" c-alpha "_@]")
   pike (concat "[" c-alpha "_`]"))
 (c-lang-defvar c-symbol-start (c-lang-const c-symbol-start))
 

Leo





Reply sent to Leo <sdl.web <at> gmail.com>:
You have taken responsibility. (Fri, 20 Jul 2012 12:24:01 GMT) Full text and rfc822 format available.

Notification sent to Leo <sdl.web <at> gmail.com>:
bug acknowledged by developer. (Fri, 20 Jul 2012 12:24:01 GMT) Full text and rfc822 format available.

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

From: Leo <sdl.web <at> gmail.com>
To: 11986-done <at> debbugs.gnu.org
Subject: Re: bug#11986: 24.1; cc-mode not font lock objc methods with leading _
Date: Fri, 20 Jul 2012 20:16:54 +0800
Installed in emacs-24.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 18 Aug 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 265 days ago.

Previous Next


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