From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.cc-mode.general,gmane.emacs.devel Subject: Re: Font-lock decides function call is function declaration in C+ + Date: Sun, 11 Feb 2007 18:18:34 -0500 Message-ID: <87hctscmgl.fsf@stupidchicken.com> References: <81CCA6588E60BB42BE68BD029ED4826011AB3F79@wimex2.wim.midas-kapiti.com> <20070207215912.GA2324@muc.de> <87hctvhvlq.fsf@stupidchicken.com> <20070211185523.GA7079@muc.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1171235945 16635 80.91.229.12 (11 Feb 2007 23:19:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Feb 2007 23:19:05 +0000 (UTC) Cc: "'bug-cc-mode@gnu.org'" , "Marshall, Simon" , "'emacs-devel@gnu.org'" To: Alan Mackenzie Original-X-From: cc-mode-help-bounces@lists.sourceforge.net Mon Feb 12 00:19:02 2007 Return-path: Envelope-to: sf-cc-mode-help@m.gmane.org Original-Received: from lists-outbound.sourceforge.net ([66.35.250.225]) by lo.gmane.org with esmtp (Exim 4.50) id 1HGNyH-0002lq-Ar for sf-cc-mode-help@m.gmane.org; Mon, 12 Feb 2007 00:19:01 +0100 Original-Received: from sc8-sf-list1-new.sourceforge.net (sc8-sf-list1-new-b.sourceforge.net [10.3.1.93]) by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP id A0F05F997; Sun, 11 Feb 2007 15:19:00 -0800 (PST) Original-Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.92] helo=mail.sourceforge.net) by sc8-sf-list1-new.sourceforge.net with esmtp (Exim 4.43) id 1HGNyE-00080s-Th for cc-mode-help@lists.sourceforge.net; Sun, 11 Feb 2007 15:18:58 -0800 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by mail.sourceforge.net with esmtps (TLSv1:AES256-SHA:256) (Exim 4.44) id 1HGNyE-0003cg-EI for cc-mode-help@lists.sourceforge.net; Sun, 11 Feb 2007 15:18:58 -0800 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HGNwy-0004Oi-C3 for bug-cc-mode@gnu.org; Sun, 11 Feb 2007 18:17:40 -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 1HGNyC-00026q-FA; Sun, 11 Feb 2007 18:18:56 -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 l1BNIqhY024064; Sun, 11 Feb 2007 18:18:55 -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 l1BNIe1V025176; Sun, 11 Feb 2007 18:18:41 -0500 (EST) Original-Received: from localhost (SYDNEYPACIFIC-THREE-SIXTY-THREE.MIT.EDU [18.95.6.108]) ) by outgoing-legacy.mit.edu (8.13.6/8.12.4) with ESMTP id l1BNIZSH008563; Sun, 11 Feb 2007 18:18:40 -0500 (EST) Original-Received: from cyd by localhost with local (Exim 3.36 #1 (Debian)) id 1HGNxq-0000cb-00; Sun, 11 Feb 2007 18:18:34 -0500 In-Reply-To: <20070211185523.GA7079@muc.de> (Alan Mackenzie's message of "11 Feb 2007 18\:40\:52 +0100\, Sun\, 11 Feb 2007 18\:55\:23 +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 X-Spam-Flag: NO X-detected-kernel: Solaris 9.1 X-Spam-Score: 0.0 (/) X-Spam-Report: Spam Filtering performed by sourceforge.net. See http://spamassassin.org/tag/ for more details. Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001 X-BeenThere: cc-mode-help@lists.sourceforge.net X-Mailman-Version: 2.1.8 Precedence: list List-Id: "Bug reports, feature requests, and general talk about CC Mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: cc-mode-help-bounces@lists.sourceforge.net Errors-To: cc-mode-help-bounces@lists.sourceforge.net Xref: news.gmane.org gmane.emacs.cc-mode.general:4380 gmane.emacs.devel:66274 Archived-At: Alan Mackenzie writes: > Once a variable has been inserted into c-found-types, it will stay there > almost for ever; it will stay there until re-fontification is done from > BOB (I'm not sure whether or not that also means (point-min) on a > narrowed buffer). This permanence seems to be the fundamental problem. > > I think a solution might be to remove "foo" from c-found-types whenever > text is inserted/deleted in the vicinity of "foo\n bar ();" which > syntactically destroys its status as a type identifier. I'll need to > think a lot more about this. For the Emacs 22 release, if no simple fix is forthcoming, could we simply get font-lock to avoid higlighting constructor functions? ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642