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: 19 Mar 2016 13:14:56 -0000 Organization: muc.de e.V. Message-ID: <20160319131456.55652.qmail@mail.muc.de> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458393322 15441 80.91.229.3 (19 Mar 2016 13:15:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 13:15:22 +0000 (UTC) Cc: 23053@debbugs.gnu.org To: saulius.menkevicius@gmail.com (Saulius =?UTF-8?Q?Menkevi=C4=8Dius?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 19 14:15:13 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 1ahGim-0000Ej-JL for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Mar 2016 14:15:12 +0100 Original-Received: from localhost ([::1]:48848 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGil-0004WL-KP for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Mar 2016 09:15:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39746) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGii-0004Uo-3U for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 09:15:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahGih-0007x2-0W for bug-gnu-emacs@gnu.org; Sat, 19 Mar 2016 09:15:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahGib-0007tG-SN; Sat, 19 Mar 2016 09:15:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ahGib-0002re-L7; Sat, 19 Mar 2016 09:15:01 -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: Sat, 19 Mar 2016 13:15: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.145839329910989 (code B ref 23053); Sat, 19 Mar 2016 13:15:01 +0000 Original-Received: (at 23053) by debbugs.gnu.org; 19 Mar 2016 13:14:59 +0000 Original-Received: from localhost ([127.0.0.1]:53258 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahGiZ-0002rB-B4 for submit@debbugs.gnu.org; Sat, 19 Mar 2016 09:14:59 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:26747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ahGiX-0002r3-O9 for 23053@debbugs.gnu.org; Sat, 19 Mar 2016 09:14:58 -0400 Original-Received: (qmail 55653 invoked by uid 3782); 19 Mar 2016 13:14:56 -0000 In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.2-RELEASE-p9 (amd64)) 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:115081 Archived-At: Hello, Saulius. In article you wrote: > When writing code: > namespace X > { > public class A: B > {$ > ($ above denotes cursor position) > Typing [Enter] after the second { would trigger this error: > Debugger entered--Lisp error: (wrong-type-argument stringp nil) > signal(wrong-type-argument (stringp nil)) > c-syntactic-re-search-forward(nil nil t t) > c-forward-<>-arglist-recur(nil) > c-forward-<>-arglist(nil) > c-backward-<>-arglist(nil nil) > c-looking-at-decl-block(13 t) > c-guess-basic-syntax() > c-indent-line() > indent-according-to-mode() > evil-open-below(1) > funcall-interactively(evil-open-below 1) > call-interactively(evil-open-below nil nil) > command-execute(evil-open-below) > Note, that typing [Enter] after non-generic class inheritance would work ok (no error would get triggered): > namespace X > { > public class A: B > {$ > I *think* it could be related to this commit (will test): > commit 02b037b85ce32fdcf454f5b12d72f09bcb217891 > Author: Alan Mackenzie > Date: Mon Feb 15 12:45:42 2016 +0000 > Allow arithmetic operators inside C++ template constructs. Thanks for such an informative bug report. Could you possibly tell me what major mode you're using (presumably some C# Mode) and where I can get a copy of it from, please. That will enable me to reproduce the problem. > In GNU Emacs 25.0.92.3 (x86_64-apple-darwin15.3.0, NS appkit-1404.34 Version 10.11.3 (Build 15D21)) > of 2016-03-17 built on mbp.local > Repository revision: 9ab03f27fad7b1ae68dda7a2effd075658dcf184 > Windowing system distributor 'Apple', version 10.3.1404 > Configured using: > 'configure --with-gnutls --with-ns' > Configured features: > JPEG DBUS NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS > Important settings: > value of $LANG: de_LT > locale-coding-system: utf-8 > Major mode: mu4e-headers ??? Thanks in advance! -- Alan Mackenzie (Nuremberg, Germany).