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: [eric@openbsd.org: c-mode syntactic analysis regression in emacs-22.1] Date: Mon, 14 Jan 2008 19:42:49 +0000 Message-ID: <20080114194249.GA4574@muc.de> References: <14k5mm3frq.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200339238 28809 80.91.229.12 (14 Jan 2008 19:33:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 19:33:58 +0000 (UTC) Cc: Richard Stallman , emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 14 20:34:21 2008 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 1JEV4c-00042L-Jj for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 20:34:18 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEV4E-0004rp-37 for ged-emacs-devel@m.gmane.org; Mon, 14 Jan 2008 14:33:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JEV3I-0004HU-Pg for emacs-devel@gnu.org; Mon, 14 Jan 2008 14:32:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JEV3H-0004G9-LM for emacs-devel@gnu.org; Mon, 14 Jan 2008 14:32:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JEV3H-0004G2-HK for emacs-devel@gnu.org; Mon, 14 Jan 2008 14:32:55 -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_SHA1:32) (Exim 4.60) (envelope-from ) id 1JEV3H-0005ds-3o for emacs-devel@gnu.org; Mon, 14 Jan 2008 14:32:55 -0500 Original-Received: (qmail 35562 invoked by uid 3782); 14 Jan 2008 19:32:53 -0000 Original-Received: from acm.muc.de (p57AF4E49.dip.t-dialin.net [87.175.78.73]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Mon, 14 Jan 2008 20:32:49 +0100 Original-Received: (qmail 4717 invoked by uid 1000); 14 Jan 2008 19:42:49 -0000 Content-Disposition: inline In-Reply-To: <14k5mm3frq.fsf@fencepost.gnu.org> User-Agent: Mutt/1.5.9i X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) X-Primary-Address: acm@muc.de X-detected-kernel: by monty-python.gnu.org: 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:86905 Archived-At: [No apologies for top-posting!] Hallo, Glenn, I've just commited a patch to cc-engine.el (both in the trunk and Emacs-22 branch) which fixes this. How soon is Emacs 22.2 going to happen? (I've got one or two other bug fixes in CC Mode to transfer to savannah.) On Sun, Jan 06, 2008 at 02:39:21PM -0500, Glenn Morris wrote: > > Hello Alan, > > Are you able to look into this issue? It is one of the few bugs > remaining in FOR-RELEASE. > > > > From: Eric Faurot > > Subject: c-mode syntactic analysis regression in emacs-22.1 > > To: bug-gnu-emacs@gnu.org > > Date: Sat, 24 Nov 2007 18:04:41 +0100 > > X-Sent: 6 weeks, 1 day, 2 hours, 33 minutes, 8 seconds ago > > > > Hello, > > > > emacs-22.1 does not indent the following excerpt correctly because the syntactic > > analyser tags the members appearing after "abaz" as k&r arguments. > > > > ========== > > #define FOO(t) struct { struct t tv; struct t *tp; } > > > > struct baz { > > int nothing; > > }; > > > > struct bar { /* ((topmost-intro 84)) */ > > FOO(baz) abaz; /* ((inclass 88) (topmost-intro 88)) */ > > int a; /* ((knr-argdecl 145)) !!! */ > > }; > > ========= > > > > emacs-21 works ok; it gives ((inclass . 88) (topmost-intro . 134)) for "int a;". -- Alan Mackenzie (Nuremberg, Germany).