From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Saulius =?UTF-8?Q?Menkevi=C4=8Dius?= 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 23:53:22 +0200 Message-ID: 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> <20160321122641.GA3641@acm.fritz.box> <1458564356.2685887.555173674.7F6E345D@webmail.messagingengine.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1458597285 15669 80.91.229.3 (21 Mar 2016 21:54:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Mar 2016 21:54:45 +0000 (UTC) Cc: Alan Mackenzie , 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 22:54:32 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 1ai7mR-0008Rw-31 for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 22:54:31 +0100 Original-Received: from localhost ([::1]:60693 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7mN-0002HO-CE for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Mar 2016 17:54:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7m5-0001vs-MC for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 17:54:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ai7m0-0003rd-KF for bug-gnu-emacs@gnu.org; Mon, 21 Mar 2016 17:54:09 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60346) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ai7m0-0003rZ-HG; Mon, 21 Mar 2016 17:54:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ai7lx-00071o-SE; Mon, 21 Mar 2016 17:54:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Saulius =?UTF-8?Q?Menkevi=C4=8Dius?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Mon, 21 Mar 2016 21:54:01 +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.145859721226983 (code B ref 23053); Mon, 21 Mar 2016 21:54:01 +0000 Original-Received: (at 23053) by debbugs.gnu.org; 21 Mar 2016 21:53:32 +0000 Original-Received: from localhost ([127.0.0.1]:57473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai7lT-000718-W1 for submit@debbugs.gnu.org; Mon, 21 Mar 2016 17:53:32 -0400 Original-Received: from mail-wm0-f47.google.com ([74.125.82.47]:36557) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ai7lS-00070u-80 for 23053@debbugs.gnu.org; Mon, 21 Mar 2016 17:53:30 -0400 Original-Received: by mail-wm0-f47.google.com with SMTP id r129so68391404wmr.1 for <23053@debbugs.gnu.org>; Mon, 21 Mar 2016 14:53:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=j+YkPQrU3/rCGeYi69b9K9P3MqhZg/GDQXjTg35zVJ4=; b=cgyotV0ZX6nmUTTqrLaS/ThoVwLfW99dvq6mZ7qLIVSjx7pZwXJ8Zs/NDxxDqzJI2N 5HOunBwke7D1MFa3ARYegA53pEsXTwct7nEF9uX5c91LU28Kogu9otwtACRAp4dZLRpp YZy99TstRZXEHChgKDb0brcvn1xoOMl3+nlJ/rhDua5A49pkrcQkuH+NjR2qcDKMYZ3D hhdCJkwsklLp3F6uAwzgAEhdn0BLQ58EoF4PFVSg+Xr93WkcbNTLVywoeFoYIvKgM12y EQUToDKNEkVc+XOvXN+/C6SIks14isM+n66kzFuwnPa39tWyeYdD+5TZvoSIggL0NZOw 39ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=j+YkPQrU3/rCGeYi69b9K9P3MqhZg/GDQXjTg35zVJ4=; b=DJpTBfexB1jcXfFvyaKdqOrW0NaJVFcKzpmieQyAXaa8x8lSL8xVCGByUmWdixhqKt p3jb4yO0YSOeVOLOZ6SQZdAJB+QRCIvKDRhTlSsgLwv1GhJYInE6Yd4pGFNaEa6W++mS cmV+nj8O07dQjcXNWuZmXJE2ZYVf1TEB5o0Hgl6GYU1j0Nh7Njt8SnrmyVP1urNkyS97 TOcsRAbiAH1DIk38oRsVQA16o+cF+bvtnNmd3076EVdB8jphF0KnYvIoWwutb2QFEgz4 +APixHFdIjuFR7uiNeoQY2UdCPZiqIMF10NS0d8KYgIx4YkAfwWTRDVC+7XEkkk9z+5P FzFg== X-Gm-Message-State: AD7BkJJ3KXtvULedBjN+ETBvI3COTBd60DtqzVlW2zu59gefLotWMO7QMd6HhqRVl3Cmrg== X-Received: by 10.28.101.133 with SMTP id z127mr16732309wmb.84.1458597204678; Mon, 21 Mar 2016 14:53:24 -0700 (PDT) Original-Received: from mbp.local ([78.63.255.2]) by smtp.gmail.com with ESMTPSA id 192sm14341639wmw.0.2016.03.21.14.53.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Mar 2016 14:53:23 -0700 (PDT) User-agent: mu4e 0.9.16; emacs 25.0.92.5 In-reply-to: <1458564356.2685887.555173674.7F6E345D@webmail.messagingengine.com> 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:115282 Archived-At: Jostein Kjønigsen writes: > On Mon, Mar 21, 2016, at 01:26 PM, Alan Mackenzie wrote: >> 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! > > I've been tracking Emacs git master. Currently I'm at this point: > >> commit 58862751bde2611d9ea99a33ecb5b0c13a7513b9 >> Author: Glenn Morris >> Date: Thu Mar 17 00:14:11 2016 -0700 > > After each "git pull", I've done a "make distclean && make". > >> Can we be absolutely clear here, please. Have you observed this bug in >> Java Mode yourself? > > Yes. I've created a new file called test.java with the following > contents: > >> package Test; >> >> public class A extends B$ > > Pressing enter at this point will trigger a similar error, and the same > will typing { following that enter. > >> 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. > > That's a good theory and I decided to completely wiping csharp-mode and > reevaluating it inside Emacs to verify that stale data is not the cause > of the errors. > > I'm still getting "wrong argument: stringp, nil" everywhere when > pressing enter interactively inside Emacs csharp-mode buffers. > > I therefore tried to look into the build-system to see what it reports. > > Byte-compiling csharp-mode triggers a warning which so far haven't been > an > issue for csharp-mode: > >> $ make csharp-mode.elc >> ... >> csharp-mode.el:1772:17:Warning: looking-back called with 1 argument, but >> requires 2-3 > > Trying to run a "make test" of csharp-mode against git master, most of > the tests breaks: > >> Test indentation-rules-should-be-as-specified-in-test-doc backtrace: >> c-forward-label() >> c-guess-basic-syntax() >> c-indent-region(1 1390) >> indent-region(1 1390) >> (let* ((buffer (find-file "test-files/indentation-tests.cs")) (orig- >> (lambda nil (let* ((buffer (find-file "test-files/indentation-tests. >> ert--run-test-internal([cl-struct-ert--test-execution-info [cl-struc >> ert-run-test([cl-struct-ert-test indentation-rules-should-be-as-spec >> ert-run-or-rerun-test([cl-struct-ert--stats t [[cl-struct-ert-test a >> ert-run-tests(t #[385 "\306\307\"\203G\211\211G\310U\203\211@\20 >> ert-run-tests-batch(nil) >> ert-run-tests-batch-and-exit() >> command-line-1(("-L" "." "-l" "csharp-mode-tests.el" "-f" "ert-run-t >> command-line() >> normal-top-level() >> Test indentation-rules-should-be-as-specified-in-test-doc condition: >> (wrong-type-argument stringp nil) >> FAILED 15/15 indentation-rules-should-be-as-specified-in-test-doc > > I haven't looked into Saulius's C# file to reproduce this issue, so I > can't say if that is why you cannot reproduce or not. > > Are the changes between between Emacs-25 and master so significant that > they could the big differences between our observations? I find that > hard to believe. > > Anyway, something somewhere is clearly broken, and the faster we can > find out what, the better. > > If you need more input, more theories tested, or more help understanding > any part of my setup, let me know. I'll try to provide all the info I > can. Actually, removing and installing csharp-mode from package manager with the latest emacs-25 fixed the issue for me. And I could not replicate the same problem in Java mode. -- Saulius Menkevičius (saulius.menkevicius@gmail.com)