From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: RE: Font-lock decides function call is function declaration in C+ + Date: Mon, 12 Feb 2007 07:53:53 -0800 (PST) Message-ID: <44933.128.165.123.18.1171295633.squirrel@webmail.lanl.gov> References: <81CCA6588E60BB42BE68BD029ED4826011ED2AA1@wimex2.wim.midas-kapiti.com> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1171295662 25365 80.91.229.12 (12 Feb 2007 15:54:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Feb 2007 15:54:22 +0000 (UTC) Cc: "'bug-cc-mode@gnu.org'" , 'Alan Mackenzie' , 'Chong Yidong' , 'Stefan Monnier' , "'emacs-devel@gnu.org'" To: "Marshall, Simon" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 12 16:54:14 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 1HGdVM-0000Uo-O2 for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 16:54:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGdVM-0000TS-7J for ged-emacs-devel@m.gmane.org; Mon, 12 Feb 2007 10:54:12 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HGdVC-0000TD-Fi for emacs-devel@gnu.org; Mon, 12 Feb 2007 10:54:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HGdVA-0000T1-Qi for emacs-devel@gnu.org; Mon, 12 Feb 2007 10:54:01 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HGdVA-0000Sy-L9 for emacs-devel@gnu.org; Mon, 12 Feb 2007 10:54:00 -0500 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HGdV6-0008Sw-J7; Mon, 12 Feb 2007 10:53:59 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l1CFrr2e006446; Mon, 12 Feb 2007 08:53:54 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l1CFrrRw008626; Mon, 12 Feb 2007 08:53:53 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l1CFrriB006246; Mon, 12 Feb 2007 08:53:53 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l1CFrr4c006244; Mon, 12 Feb 2007 07:53:53 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 12 Feb 2007 07:53:53 -0800 (PST) In-Reply-To: <81CCA6588E60BB42BE68BD029ED4826011ED2AA1@wimex2.wim.midas-kapiti.com> User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-detected-kernel: Linux 2.4-2.6 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:66289 Archived-At: > Yes, unfortunately, I think that if you try to learn types on-the-fly then > you will always be vulnerable to this sort of problem. The issue is that > cc-mode needs to know as soon as a change invalidates it as a candidate > type > (ie, deletion of some/all of the text "foo" or interruption of the > whitespace between "foo" and its candidate identifier "bar"). I can think > of a few ways you could attempt to do it, but they are a bit intensive and > far from simple. It's worse than that. Inserting a new letter that changes "foo", or transposing two characters 3k back in the buffer that cause the whole region to become a comment, or deleting "bar", or exchanging "foo" and "bar", or merely exchanging 'f' and 'o', or adding #define in front of "foo", or... any of which could be done as one change by an appropriate Lisp helper function. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.