From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Font-lock decides function call is function declaration in C+ + Date: Mon, 05 Feb 2007 12:14:48 -0500 Message-ID: <87ps8ottkn.fsf@stupidchicken.com> References: <81CCA6588E60BB42BE68BD029ED4826011AB3F79@wimex2.wim.midas-kapiti.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1170696048 2628 80.91.229.12 (5 Feb 2007 17:20:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 5 Feb 2007 17:20:48 +0000 (UTC) Cc: "'bug-cc-mode@gnu.org'" , "'emacs-devel@gnu.org'" To: "Marshall\, Simon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 05 18:20:40 2007 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.50) id 1HE7WB-0005iD-2v for ged-emacs-devel@m.gmane.org; Mon, 05 Feb 2007 18:20:39 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HE7WA-0003sA-GB for ged-emacs-devel@m.gmane.org; Mon, 05 Feb 2007 12:20:38 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HE7Vc-0003gl-AM for emacs-devel@gnu.org; Mon, 05 Feb 2007 12:20:04 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HE7Va-0003fb-QA for emacs-devel@gnu.org; Mon, 05 Feb 2007 12:20:02 -0500 Original-Received: from south-station-annex.mit.edu ([18.72.1.2]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HE7Va-0002Nq-CJ; Mon, 05 Feb 2007 12:20:02 -0500 Original-Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by south-station-annex.mit.edu (8.13.6/8.9.2) with ESMTP id l15HJwqw029069; Mon, 5 Feb 2007 12:20:00 -0500 (EST) Original-Received: from outgoing-legacy.mit.edu (OUTGOING-LEGACY.MIT.EDU [18.7.22.104]) by grand-central-station.mit.edu (8.13.6/8.9.2) with ESMTP id l15HEkX3011252; Mon, 5 Feb 2007 12:14:47 -0500 (EST) Original-Received: from localhost ([18.19.7.58]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l15HEke5024931; Mon, 5 Feb 2007 12:14:46 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HE7QW-0001H0-00; Mon, 05 Feb 2007 12:14:48 -0500 In-Reply-To: <81CCA6588E60BB42BE68BD029ED4826011AB3F79@wimex2.wim.midas-kapiti.com> (Simon Marshall's message of "Mon\, 5 Feb 2007 16\:46\:32 -0000") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (gnu/linux) X-Scanned-By: MIMEDefang 2.42 X-Spam-Score: 0.001 X-detected-kernel: Solaris 9.1 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:65926 Archived-At: "Marshall, Simon" writes: > emacs -Q foo.cpp > int SPC main() SPC { RET } RET C-p C-o bar(); > > OK so far. Now to insert the "foo();" line: > > C-a C-o foo > > At this point, "foo" is fontified as a type, and "bar" as a variable. OK. > Now: > > () > > The fontification of "foo" and "bar" disappears. OK. Now complete the > snippet: > > ; > > Now "foo" is fontified as a variable. This is wrong. I can reproduce this now. Note that it only happens in c++ mode, not in plain c-mode. Hopefully, someone familiar with the cc-mode code can debug it.