Missing lexical-binding in cache file

Bastian Hussi via <[email protected]> Thu, 12 Feb 2026 12:42:28 +0100
Newsgroups gmane.emacs.emms.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------xBqKqtfEEIvANVJgobhQSgXr
Content-Type: multipart/alternative;
 boundary="------------hCw9YE3kbS8APdMOIuZYntJj"

--------------hCw9YE3kbS8APdMOIuZYntJj
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

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

    |⛔ Warning (files): Missing ‘lexical-binding’ cookie in
    "~/.config/emacs/var/emms/cache".|
    |You can add one with ‘M-x elisp-enable-lexical-binding RET’.|
    |See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to
    Lexical Binding’|
    |for more information.|

Lexical binding seems to be the default since Emacs 31, see here: 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145.

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.


Kind regards

Bastian


--------------hCw9YE3kbS8APdMOIuZYntJj
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html>
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hi there,</p>
    <p>I'm running the latest version of emms on Emacs 31 (build from
      source) and I have witnessed this warning when I run <code>emms-all</code>:</p>
    <blockquote>
      <p><code>⛔ Warning (files): Missing ‘lexical-binding’ cookie in
          "~/.config/emacs/var/emms/cache".</code><br>
        <code>You can add one with ‘M-x elisp-enable-lexical-binding
          RET’.</code><br>
        <code>See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting
          to Lexical Binding’</code><br>
        <code>for more information.</code><br>
        <br>
      </p>
    </blockquote>
    <p>Lexical binding seems to be the default since Emacs 31, see here:
      <a class="moz-txt-link-freetext" href="https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145">https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74145</a>.</p>
    <p>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.</p>
    <p><br>
    </p>
    <p>Kind regards</p>
    <p>Bastian</p>
    <blockquote>
      <p><br>
      </p>
    </blockquote>
  </body>
</html>

--------------hCw9YE3kbS8APdMOIuZYntJj--

--------------xBqKqtfEEIvANVJgobhQSgXr
Content-Type: text/plain; charset=UTF-8; name="lexical-binding.patch"
Content-Disposition: attachment; filename="lexical-binding.patch"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL2VtbXMtY2FjaGUuZWwgYi9lbW1zLWNhY2hlLmVsCmluZGV4IDBiNTJi
YmIuLjdkZWI5YzkgMTAwNjQ0Ci0tLSBhL2VtbXMtY2FjaGUuZWwKKysrIGIvZW1tcy1jYWNo
ZS5lbApAQCAtMTM0LDcgKzEzNCw3IEBAIFRoaXMgaXMgdXNlZCB0byBjYWNoZSBvdmVyIGVt
YWNzIHNlc3Npb25zLiIpCiAgICAgICAoaW5zZXJ0CiAgICAgICAgKGNvbmNhdCAiOzs7IC5l
bW1zLWNhY2hlIC0qLSBtb2RlOiBlbWFjcy1saXNwOyBjb2Rpbmc6ICIKICAgICAgICAgICAg
ICAgIChzeW1ib2wtbmFtZSBlbW1zLWNhY2hlLWZpbGUtY29kaW5nLXN5c3RlbSkKLSAgICAg
ICAgICAgICAgICI7IC0qLVxuIikpCisgICAgICAgICAgICAgICAiOyBsZXhpY2FsLWJpbmRp
bmc6IHQ7IC0qLVxuIikpCiAgICAgICAobWFwaGFzaCAobGFtYmRhIChrIHYpCiAJCSAoaW5z
ZXJ0IChmb3JtYXQKICAgICAgICAgICAgICAgICAgICAgICAgICAgIihwdXRoYXNoICVTICcl
UyBlbW1zLWNhY2hlLWRiKVxuIiBrIHYpKSkK

--------------xBqKqtfEEIvANVJgobhQSgXr--