all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
@ 2020-08-25 12:37 AC
  2020-10-16  8:29 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: AC @ 2020-08-25 12:37 UTC (permalink / raw)
  To: 43037

I compile emacs off the emacs-27 branch. On those machines, opening certain file types results in the above error.

For .js files for instance, the full error is 

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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  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
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Ingebrigtsen @ 2020-10-16  8:29 UTC (permalink / raw)
  To: AC; +Cc: 43037

AC <achirvasub@gmail.com> writes:

> I compile emacs off the emacs-27 branch. On those machines, opening
> certain file types results in the above error.
>
> For .js files for instance, the full error is 
>
> 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)")

(This bug report unfortunately got no attention at the time.)

I'm unable to reproduce this bug in Emacs 27 or Emacs 28.  Do you have a
recipe for reproducing this bug, starting from "emacs -Q"?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16  8:29 ` Lars Ingebrigtsen
@ 2020-10-16 10:14   ` AC
  2020-10-16 10:45     ` Eli Zaretskii
  0 siblings, 1 reply; 12+ messages in thread
From: AC @ 2020-10-16 10:14 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 43037



On October 16, 2020 4:29:18 AM EDT, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>AC <achirvasub@gmail.com> writes:
>
>> I compile emacs off the emacs-27 branch. On those machines, opening
>> certain file types results in the above error.
>>
>> For .js files for instance, the full error is 
>>
>> 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)")
>
>(This bug report unfortunately got no attention at the time.)
>
>I'm unable to reproduce this bug in Emacs 27 or Emacs 28.  Do you have
>a
>recipe for reproducing this bug, starting from "emacs -Q"?
>

Yes. 

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.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  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
  0 siblings, 2 replies; 12+ messages in thread
From: Eli Zaretskii @ 2020-10-16 10:45 UTC (permalink / raw)
  To: AC, Alan Mackenzie; +Cc: larsi, 43037

> 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?





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 10:45     ` Eli Zaretskii
@ 2020-10-16 13:35       ` AC
  2020-10-16 14:43       ` Alan Mackenzie
  1 sibling, 0 replies; 12+ messages in thread
From: AC @ 2020-10-16 13:35 UTC (permalink / raw)
  To: Eli Zaretskii, Alan Mackenzie; +Cc: larsi, 43037

Thank you for confirming it happens!

Some additional info: I can reproduce this consistently on 3 machines, all running Ubuntu (20.04 and 18.04); the procedure is the same on all of them (compile the current emacs-27 branch from the repo). I don't know if this (the Ubuntu base) matters..

On the other hand, the "standard" Emacs 27.1 that comes with Arch Linux does not exhibit this.

On October 16, 2020 6:45:34 AM EDT, Eli Zaretskii <eliz@gnu.org> 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?





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 10:45     ` Eli Zaretskii
  2020-10-16 13:35       ` AC
@ 2020-10-16 14:43       ` Alan Mackenzie
  2020-10-16 15:38         ` AC
  2020-10-16 15:45         ` Eli Zaretskii
  1 sibling, 2 replies; 12+ messages in thread
From: Alan Mackenzie @ 2020-10-16 14:43 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, AC, 43037

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





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 14:43       ` Alan Mackenzie
@ 2020-10-16 15:38         ` AC
  2020-10-16 16:04           ` Alan Mackenzie
  2020-10-16 15:45         ` Eli Zaretskii
  1 sibling, 1 reply; 12+ messages in thread
From: AC @ 2020-10-16 15:38 UTC (permalink / raw)
  To: Alan Mackenzie, Eli Zaretskii; +Cc: larsi, 43037

Thank you!

Quick request for clarification:

On October 16, 2020 10:43:53 AM EDT, Alan Mackenzie <acm@muc.de> wrote:
>Hello, Eli and AC.
>
>On Fri, Oct 16, 2020 at 13:45:34 +0300, Eli 
>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.
>

Were all instances of 'js-mode' in the above-quoted message meant to be 'js' instead?

I have js.{el,elc} in my clone of the repo, but no js-mode* at all (anywhere in my homedir, for that matter).





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 14:43       ` Alan Mackenzie
  2020-10-16 15:38         ` AC
@ 2020-10-16 15:45         ` Eli Zaretskii
  2020-10-16 16:32           ` Alan Mackenzie
  1 sibling, 1 reply; 12+ messages in thread
From: Eli Zaretskii @ 2020-10-16 15:45 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: larsi, achirvasub, 43037

> Date: Fri, 16 Oct 2020 14:43:53 +0000
> Cc: AC <achirvasub@gmail.com>, larsi@gnus.org, 43037@debbugs.gnu.org
> From: Alan Mackenzie <acm@muc.de>
> 
> >   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.

You are right.

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

Yes, please.  On the emacs-27 branch, please.

Thanks.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 15:38         ` AC
@ 2020-10-16 16:04           ` Alan Mackenzie
  2020-10-16 16:08             ` AC
  0 siblings, 1 reply; 12+ messages in thread
From: Alan Mackenzie @ 2020-10-16 16:04 UTC (permalink / raw)
  To: AC; +Cc: 43037, larsi

Hello, AC.

On Fri, Oct 16, 2020 at 11:38:28 -0400, AC wrote:
> Thank you!

> Quick request for clarification:

> On October 16, 2020 10:43:53 AM EDT, Alan Mackenzie <acm@muc.de> wrote:
> >Hello, Eli and AC.

> >On Fri, Oct 16, 2020 at 13:45:34 +0300, Eli 
> >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.


> Were all instances of 'js-mode' in the above-quoted message meant to be 'js' instead?

Apologies.  js-mode should indeed have been js, as in js.el and js.elc.

> I have js.{el,elc} in my clone of the repo, but no js-mode* at all (anywhere in my homedir, for that matter).

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 16:04           ` Alan Mackenzie
@ 2020-10-16 16:08             ` AC
  2020-10-16 20:04               ` Alan Mackenzie
  0 siblings, 1 reply; 12+ messages in thread
From: AC @ 2020-10-16 16:08 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: 43037, larsi



On October 16, 2020 12:04:06 PM EDT, Alan Mackenzie <acm@muc.de> wrote:
>
>> Were all instances of 'js-mode' in the above-quoted message meant to
>be 'js' instead?
>
>Apologies.  js-mode should indeed have been js, as in js.el and js.elc.
>

Thank you!

I can confirm your suggestion works fine: simply touching lisp/progmodes/js.el to change its timestamp induced the build system to recompile it, and now the error's gone.





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 15:45         ` Eli Zaretskii
@ 2020-10-16 16:32           ` Alan Mackenzie
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Mackenzie @ 2020-10-16 16:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: larsi, achirvasub, 43037

Hello, Eli.

On Fri, Oct 16, 2020 at 18:45:43 +0300, Eli Zaretskii wrote:
> > Date: Fri, 16 Oct 2020 14:43:53 +0000
> > Cc: AC <achirvasub@gmail.com>, larsi@gnus.org, 43037@debbugs.gnu.org
> > From: Alan Mackenzie <acm@muc.de>

[ .... ]

> > To resolve this, I think deleting lisp/progmodes/js-mode.elc and
> > compiling lisp/progmodes/js-mode.el again should sort out the problem.

> You are right.

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

> Yes, please.  On the emacs-27 branch, please.

DONE.

> Thanks.

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#43037: Eval error in the ‘c-lang-defvar’ or ‘c-lang-setvar’
  2020-10-16 16:08             ` AC
@ 2020-10-16 20:04               ` Alan Mackenzie
  0 siblings, 0 replies; 12+ messages in thread
From: Alan Mackenzie @ 2020-10-16 20:04 UTC (permalink / raw)
  To: AC; +Cc: 43037-done, larsi

Hello, AC.

On Fri, Oct 16, 2020 at 12:08:28 -0400, AC wrote:


> On October 16, 2020 12:04:06 PM EDT, Alan Mackenzie <acm@muc.de> wrote:

> >> Were all instances of 'js-mode' in the above-quoted message meant
> >> to be 'js' instead?

> >Apologies.  js-mode should indeed have been js, as in js.el and js.elc.


> Thank you!

> I can confirm your suggestion works fine: simply touching
> lisp/progmodes/js.el to change its timestamp induced the build system
> to recompile it, and now the error's gone.

That's great!  I've put the amendment into the emacs-27 branch
Makefile.in, as discussed with Eli, so I'm closing the bug with this
post.

-- 
Alan Mackenzie (Nuremberg, Germany).





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-10-16 20:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.