From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#23053: 25.0.92; error in cc-mode when editing C# file with a generic class inheritance Date: Mon, 21 Mar 2016 12:26:42 +0000 Message-ID: <20160321122641.GA3641@acm.fritz.box> References: <1458336813.1207699.553441090.44208CA4@webmail.messagingengine.com> <87wpozbd0r.fsf@acer.localhost.com> <1458372574.1341144.553674538.3D65409A@webmail.messagingengine.com> <1458376039.1351011.553705922.10F4D27F@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1458563063 22370 80.91.229.3 (21 Mar 2016 12:24:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 12:24:23 +0000 (UTC) Cc: Ingo Lohmar , 23053@debbugs.gnu.org To: jostein@kjonigsen.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 21 13:24:12 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ahysU-0000x9-MJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 13:24:10 +0100 Original-Received: from localhost ([::1]:57470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahysT-0005av-R5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 08:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahysP-0005ai-Lj for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 08:24:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahysM-0000db-F7 for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 08:24:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59202) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahysM-0000dW-BB; Mon, 21 Mar 2016 08:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahysM-00034Z-6t; Mon, 21 Mar 2016 08:24:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 21 Mar 2016 12:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23053 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 23053-submit@debbugs.gnu.org id=B23053.145856303811801 (code B ref 23053); Mon, 21 Mar 2016 12:24:02 +0000 Original-Received: (at 23053) by debbugs.gnu.org; 21 Mar 2016 12:23:58 +0000 Original-Received: from localhost ([127.0.0.1]:56329 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahysI-00034H-Dc for submit@debbugs.gnu.org; Mon, 21 Mar 2016 08:23:58 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:48244) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahysG-000348-P0 for 23053@debbugs.gnu.org; Mon, 21 Mar 2016 08:23:57 -0400 Original-Received: (qmail 77363 invoked by uid 3782); 21 Mar 2016 12:23:54 -0000 Original-Received: from acm.muc.de (p548A5513.dip0.t-ipconnect.de [84.138.85.19]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 21 Mar 2016 13:23:53 +0100 Original-Received: (qmail 4050 invoked by uid 1000); 21 Mar 2016 12:26:42 -0000 Content-Disposition: inline In-Reply-To: <1458376039.1351011.553705922.10F4D27F@webmail.messagingengine.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115224 Archived-At: Hello, Jostein. On Sat, Mar 19, 2016 at 09:27:19AM +0100, Jostein Kjønigsen wrote: > > So to move the issue forward I guess we need to decide: Are we > > blaming cc-mode or csharp-mode? > > Anyone with strong opinions on the matter? I suspect the interface between CC Mode and csharp-mode. :-) My working hypothesis is that the compiled csharp-mode.elc was compiled on an earlier revision of the emacs-25 branch, hence didn't pick up a newly introduced c-lang-defvar properly, thus leaving its value at nil. This nil value is what triggered the error in c-forward-<>-arglist-recur. This hypothesis is not consistent with the bug also happening in Java Mode, hence my questions below.... > > -- > > Jostein Kjønigsen > > jostein@kjonigsen.net / jostein@secure.kjonigsen.net > And in that regard, I'd like to report that this issue can be reproduced > just as easily in Java-mode as well. Can we be absolutely clear here, please. Have you observed this bug in Java Mode yourself? If so, could you possibly give me details of the version of the emacs-25 branch you saw it in, and any other details I'd need to reproduce it. Thanks! What I tried was taking Saulius's C# file, doing M-x java-mode, then typing that carriage return. I could not reproduce the bug in Java Mode. I was running a recent emacs-25 branch, latest commit was 5cc691930808ccf7afdbc53ed49ca24badd97013 from Mon Mar 14 21:44:11 2016 +0000. Also, having recompiled csharp-mode-0.8.12 in that emacs-25 branch, I don't see the error any more. I did see the error when I ran csharp-mode compiled on Emacs-24.5 in the emacs-25 branch. > So it's not just csharp-mode which is affected. > -- > Jostein -- Alan Mackenzie (Nuremberg, Germany).