Repository navigation
Missing ‘lexical-binding’ #89
|
Total emacs newbie here. I am using emacs 31.1 with spacemacs and the php layer and I get this error: According to this issue in the spacemacs repo, this might be fixed by adding |
Replies: 2 comments
|
your patch is the right fix, and it's only a warning. newer emacs complains when it loads an .el file without the cookie, then loads it with the old dynamic binding anyway, so drupal-mode behaves exactly the same either way. downside is the patch gets wiped every time the package updates, and drupal-mode hasn't had a commit since aug 2024. if you'd rather just hide it, the warning type is (with-eval-after-load 'warnings
(add-to-list 'warning-suppress-types '(files missing-lexbind-cookie)))that hides it for every package missing the cookie, not just this one. opening an issue here asking for the cookie in the drupal/*.el files would be the proper long term fix. |
|
Well, |
your patch is the right fix, and it's only a warning. newer emacs complains when it loads an .el file without the cookie, then loads it with the old dynamic binding anyway, so drupal-mode behaves exactly the same either way.
lexical-binding: nilis the safe value since that's what the file was written for.downside is the patch gets wiped every time the package updates, and drupal-mode hasn't had a commit since aug 2024. if you'd rather just hide it, the warning type is
(files missing-lexbind-cookie ...), so indotspacemacs/user-config:that hides it for every package missing the cooki…