bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23053: 25.0.92; error in cc-mode when editing C# file with a generic


From: Alan Mackenzie
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
User-agent: Mutt/1.5.24 (2015-08-30)

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).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]