From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Klimov Newsgroups: gmane.emacs.devel Subject: Re: fontification in C++ mode Date: Thu, 28 Oct 2010 11:57:53 +0200 Message-ID: References: <20101016202941.GC1805@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: dough.gmane.org 1288259904 2312 80.91.229.12 (28 Oct 2010 09:58:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Oct 2010 09:58:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 28 11:58:22 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PBPFV-0004b4-DM for ged-emacs-devel@m.gmane.org; Thu, 28 Oct 2010 11:58:21 +0200 Original-Received: from localhost ([127.0.0.1]:60600 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBPFT-00032R-1h for ged-emacs-devel@m.gmane.org; Thu, 28 Oct 2010 05:58:19 -0400 Original-Received: from [140.186.70.92] (port=39543 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PBPFG-0002z7-Du for emacs-devel@gnu.org; Thu, 28 Oct 2010 05:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PBPFF-0001f5-EU for emacs-devel@gnu.org; Thu, 28 Oct 2010 05:58:06 -0400 Original-Received: from www.eitan.edu ([199.203.54.24]:55200 helo=eitan.edu) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PBPFA-0001e4-M7 for emacs-devel@gnu.org; Thu, 28 Oct 2010 05:58:05 -0400 Original-Received: (qmail 29175 invoked from network); 28 Oct 2010 09:57:53 -0000 Original-Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 28 Oct 2010 09:57:53 -0000 In-Reply-To: <20101016202941.GC1805@muc.de> X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132160 Archived-At: Hi. === void f(const A& b){} === `f' is not treated as a function name. Note that it is not on the first line of a file and it is the last definition. === void a(const A& b){} void b(const A& b){} === Here both function names are not treated. Btw, I guess it is a good idea to get some c++ sources, dump faces as produced by emacs-23, normalize and diff with the current version, e.g., (buffer-substring 1 (point-max)) in emacs-23.1 gives #(" void b(const A& b){} " 0 1 (fontified t) 1 4 (fontified t face font-lock-type-face) 4 5 (fontified t c-type c-decl-id-start face font-lock-type-face) 5 6 (fontified t) 6 7 (fontified t face font-lock-function-name-face) 7 8 (fontified t c-type c-decl-arg-start) 8 13 (fontified t face font-lock-keyword-face) 13 14 (fontified t) 14 15 (fontified t face font-lock-type-face) 15 17 (fontified t) 17 18 (fontified t face font-lock-variable-name-face) 18 22 (fontified t) 22 23 (fontified t)) while in the current version it gives #(" void b(const A& b){} " 0 1 (fontified t) 1 5 (fontified t face font-lock-type-face) 5 7 (fontified t) 7 8 (fontified t) 8 13 (fontified t face font-lock-keyword-face) 13 14 (fontified t) 14 15 (fontified t face font-lock-type-face) 15 17 (fontified t) 17 18 (fontified t face font-lock-variable-name-face) 18 22 (fontified t) 22 23 (fontified t)) -- Regards, ASK