unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: larsi@gnus.org, AC <achirvasub@gmail.com>, 43037@debbugs.gnu.org
Subject: bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
Date: Fri, 16 Oct 2020 14:43:53 +0000	[thread overview]
Message-ID: <20201016144353.GA7085@ACM> (raw)
In-Reply-To: <834kmuwisx.fsf@gnu.org>

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 <achirvasub@gmail.com>
> > 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).





  parent reply	other threads:[~2020-10-16 14:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-25 12:37 bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’ AC
2020-10-16  8:29 ` Lars Ingebrigtsen
2020-10-16 10:14   ` AC
2020-10-16 10:45     ` Eli Zaretskii
2020-10-16 13:35       ` AC
2020-10-16 14:43       ` Alan Mackenzie [this message]
2020-10-16 15:38         ` AC
2020-10-16 16:04           ` Alan Mackenzie
2020-10-16 16:08             ` AC
2020-10-16 20:04               ` Alan Mackenzie
2020-10-16 15:45         ` Eli Zaretskii
2020-10-16 16:32           ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201016144353.GA7085@ACM \
    --to=acm@muc.de \
    --cc=43037@debbugs.gnu.org \
    --cc=achirvasub@gmail.com \
    --cc=eliz@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).