From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.bugs Subject: bug#43037: Eval error in the =?UTF-8?Q?=E2=80=98c-lang-defvar=E2=80=99?= or =?UTF-8?Q?=E2=80=98c-lang-setvar=E2=80=99?= Date: Fri, 16 Oct 2020 14:43:53 +0000 Message-ID: <20201016144353.GA7085@ACM> References: <8324B5F4-699B-40D2-86E8-4E54C59D5815@gmail.com> <87o8l2mv4x.fsf@gnus.org> <731EBF4B-3950-4E2E-A44E-DA2291052CAD@gmail.com> <834kmuwisx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39815"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, AC , 43037@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 16 16:45:49 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kTQzN-000AEw-NC for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 16:45:49 +0200 Original-Received: from localhost ([::1]:33438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTQzM-0001Zs-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Oct 2020 10:45:48 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTQyc-0001YK-MU for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 10:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48894) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kTQyc-0002Kb-CR for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 10:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kTQyc-0005cG-BA for bug-gnu-emacs@gnu.org; Fri, 16 Oct 2020 10:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Oct 2020 14:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43037 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 43037-submit@debbugs.gnu.org id=B43037.160285944221475 (code B ref 43037); Fri, 16 Oct 2020 14:45:02 +0000 Original-Received: (at 43037) by debbugs.gnu.org; 16 Oct 2020 14:44:02 +0000 Original-Received: from localhost ([127.0.0.1]:60436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kTQxd-0005aE-Lc for submit@debbugs.gnu.org; Fri, 16 Oct 2020 10:44:02 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:57983 helo=mail.muc.de) by debbugs.gnu.org with smtp (Exim 4.84_2) (envelope-from ) id 1kTQxb-0005Zg-UN for 43037@debbugs.gnu.org; Fri, 16 Oct 2020 10:44:00 -0400 Original-Received: (qmail 78597 invoked by uid 3782); 16 Oct 2020 14:43:53 -0000 Original-Received: from acm.muc.de (p4fe15b31.dip0.t-ipconnect.de [79.225.91.49]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Fri, 16 Oct 2020 16:43:53 +0200 Original-Received: (qmail 7112 invoked by uid 1000); 16 Oct 2020 14:43:53 -0000 Content-Disposition: inline In-Reply-To: <834kmuwisx.fsf@gnu.org> 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-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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:190697 Archived-At: Hello, Eli and AC. On Fri, Oct 16, 2020 at 13:45:34 +0300, Eli Zaretskii wrote: > > Date: Fri, 16 Oct 2020 06:14:17 -0400 > > From: AC > > Cc: 43037@debbugs.gnu.org > > Literally seconds ago I compiled emacs-27, started it up with 'emacs > > -Q' and then visited the blank file '~/new.js'. That error popped > > up. > I cannot reproduce this with stock Emacs 27.1, but I can reproduce > with the current emacs-27 branch. The more detailed error message is > this: > Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’ for > ‘font-lock-comment-end-skip’ (fallback source eval - js-mode > compiled with CC Mode 5.34 but loaded with 5.34.1): (error > "‘c-font-lock-comment-end-skip’ got no (prior) value in js-mode > (might be a cyclic reference)") > Alan, can you take a look, please? Yes, I think the problem is precisely what the error message said. js-mode.el was compiled (quite a long time ago) when c-version was still 5.34, but since then c-version has become 5.34.1. So their is a clash between what js-mode.el was compiled with and the CC Mode current in the Emacs version. To resolve this, I think deleting lisp/progmodes/js-mode.elc and compiling lisp/progmodes/js-mode.el again should sort out the problem. This problem has happened more than once. I think the solution should be in the Makefile to add a dependency of js-mode.elc on cc-defs.el. -- Alan Mackenzie (Nuremberg, Germany).