Skip to content
Discussion options

You must be logged in to vote

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: nil is 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 in dotspacemacs/user-config:

(with-eval-after-load 'warnings
  (add-to-list 'warning-suppress-types '(files missing-lexbind-cookie)))

that hides it for every package missing the cooki…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by finn-matti
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants