auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUILD] emacs-git fails to byte-compile style/empheq.el


From: Arash Esbati
Subject: Re: [BUILD] emacs-git fails to byte-compile style/empheq.el
Date: Sun, 06 Dec 2020 12:30:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50

Hi Tassilo and Vladimir,

Tassilo Horn <tsdh@gnu.org> writes:

> Vladimir Lomov <lomov.vl@yandex.ru> writes:
>
>> I'm using Emacs from git (currently compiled from commit 3e6eccc175)
>> and trying to compile auctex (actually, to build package for my
>> distribution, Archlinux) but the compilation stops on empheq.el with
>> error:
>>
>> ...
>> In LaTeX-empheq-env:
>> style/empheq.el:193:30: Error: symbol-value cannot use lexical var ‘amsenv’
>> make: *** [Makefile:223: lisp] Error 1
>
> Indeed, the Emacs 28 byte-compiler recently got some new checks catching
> such erroneous usages.  I've fixed it and wonder why `symbol-value' has
> ever be used in this context. 

Thanks for reporting and fixing this.

> Arash, do you know?  That code was this way since you've added that
> style in 2016.

Hmm, can't really tell.  Probably I had the code written differently in
the first run and then missed to remove the `symbol-value'.  At any
rate, it was unnecessary and should have been improved.

>> P.S. Besides this there are many 'Warning's about obsoletenes of
>> 'easy-menu-{add,remove}' suggesting to use 'ignore' instead. I don't
>> understand them but right now it doesn't prevent compilation.
>
> I didn't at first too, but then I read the docs (C-h f easy-menu-add).
>
> Add the menu to the menubar.
> On Emacs this is a nop, because menus are already automatically
> activated when the corresponding keymap is activated.  On XEmacs
> this is needed to actually add the menu to the current menubar.
>
> So it seems like we can remove all those easy-menu-add/remove calls
> since we've stopped supporting XEmacs.

Yepp, it seems so.

Best, Arash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]