Re: Missing lexical-binding in cache file

Yoni Rabkin <[email protected]> Thu, 12 Feb 2026 11:20:24 -0500
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
Bastian Hussi via <[email protected]> writes:

> Hi there,
>
> I'm running the latest version of emms on Emacs 31 (build from source)
> and I have witnessed this warning when I run |emms-all|:
>
>    |=E2=9B=94 Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 =
cookie in
>    "~/.config/emacs/var/emms/cache".|
>    |You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=
=80=99.|
>    |See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(eli=
sp)Converting to
>    Lexical Binding=E2=80=99|
>    |for more information.|
>
> Lexical binding seems to be the default since Emacs 31, see here:
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74145.
>
> Would it be a quickwin to just enable lexical-binding in the cache
> file, like the attached patch does? Or are there more things to
> consider? I'm pretty new to emms and emacs related mailing lists.

I don't see why not. I went ahead and added this change to the main git
repo:
[https://cgit.git.savannah.gnu.org/cgit/emms.git/commit/?id=3D2c902ddbab99f=
55a8d1ef047a9a403d4e6f61d02].

I'll also commit a few extra changes soon which will also help toward
making the compilation work smoothly on emacs 31.

Thank you.

--=20
   "Cut your own wood and it will warm you twice"