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: Sun, 6 Jan 2008 20:53:53 +0000 Message-ID: <20080106205353.GB2986@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 1199652291 29436 80.91.229.12 (6 Jan 2008 20:44:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2008 20:44:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Richard Stallman , Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 21:45:12 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 1JBcMm-0001JQ-Ey for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 21:45:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBcMP-0003xU-H4 for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 15:44:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBcMJ-0003t4-Mz for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:44:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBcMF-0003kb-Gi for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:44:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBcMF-0003kI-CQ for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:44:35 -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 1JBcME-0007zV-Rl for emacs-devel@gnu.org; Sun, 06 Jan 2008 15:44:35 -0500 Original-Received: (qmail 97275 invoked by uid 3782); 6 Jan 2008 20:44:32 -0000 Original-Received: from acm.muc.de (p57AF75D8.dip.t-dialin.net [87.175.117.216]) by colin2.muc.de (tmda-ofmipd) with ESMTP; Sun, 06 Jan 2008 21:44:30 +0100 Original-Received: (qmail 11555 invoked by uid 1000); 6 Jan 2008 20:53:53 -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:86388 Archived-At: Hello, Richard and Glenn, Yes, I'm looking at this now! 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).