From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Font-lock decides function call is function declaration in C+ + - embryonic solution. Date: 3 Mar 2007 11:18:36 +0100 Message-ID: <20070303112758.GA1972@muc.de> References: <81CCA6588E60BB42BE68BD029ED4826011AB3F79@wimex2.wim.midas-kapiti.com> <20070223010309.GA3981@muc.de> <87y7mgubia.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1172917150 1311 80.91.229.12 (3 Mar 2007 10:19:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 3 Mar 2007 10:19:10 +0000 (UTC) Cc: "Marshall, Simon" , emacs-devel@gnu.org To: Chong Yidong , Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 03 11:19:03 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 1HNRKQ-0003QB-DH for ged-emacs-devel@m.gmane.org; Sat, 03 Mar 2007 11:19:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNRKK-0001Br-Ra for ged-emacs-devel@m.gmane.org; Sat, 03 Mar 2007 05:18:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HNRK8-00018t-58 for emacs-devel@gnu.org; Sat, 03 Mar 2007 05:18:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HNRK5-00015B-G8 for emacs-devel@gnu.org; Sat, 03 Mar 2007 05:18:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HNRK5-00014P-4s for emacs-devel@gnu.org; Sat, 03 Mar 2007 05:18:41 -0500 Original-Received: from colin.muc.de ([193.149.48.1] helo=mail.muc.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HNRK4-0005Qc-JP for emacs-devel@gnu.org; Sat, 03 Mar 2007 05:18:40 -0500 Original-Received: (qmail 89162 invoked by uid 3782); 3 Mar 2007 10:18:36 -0000 Original-Received: from acm.muc.de (p54A3EE44.dip.t-dialin.net [84.163.238.68]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sat, 03 Mar 2007 11:18:33 +0100 Original-Received: (qmail 2584 invoked by uid 1000); 3 Mar 2007 11:27:58 -0000 Original-Date: Sat, 3 Mar 2007 11:27:58 +0000 Content-Disposition: inline In-Reply-To: <87y7mgubia.fsf@stupidchicken.com> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: FreeBSD 4.6-4.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:67248 Archived-At: Hi, Chong and Richard! On Thu, Mar 01, 2007 at 12:19:57PM -0500, Chong Yidong wrote: > Hi Alan, > Judging by the size of the patch you sent, and the time it's taking to > write it, this seems to be a lot of work. It's really not a big patch. It's lots of lines of lisp, yet it's mainly straight through, top to bottom, without complicated loops, and the functions it calls are almost entirely base Emacs functions. I confess I got bogged down trying to write a general fix to the problem. I've given that up for now. Sorry. > Once we include the time necessary for testing such a big change, it > will probably significantly delay the Emacs 22 release. > In the interest of release Emacs 22 sometime in 2007, I'd like to > suggest postphoning this fix to Emacs 23, and simply turning off > variable-highlighting for C++ constructors. > What do you think? That turning off the highlighting would take longer to implement and test. [BTW, I don't think it's connected with C++ constructors, unless I've missed something - it's about removing type names from a cache when those names cease to be types.] I suggest instead that I tidy up that embryonic patch and commit it. I think I'll be able to do this today or tomorrow. It will not fully resolve the bug, but it will help. ######################################################################### Simon's bug report also gave this "variation" of the bug: int main() { foo(fubar); bar(); } , where "bar" got fontified as a variable when the fragment is typed in a certain way. This is actually a distinct bug, which I think will be easier to fix. -- Alan Mackenzie (Ittersbach, Germany).