Hello,

upon launching Emacs (Emacs 31.0.50, Org 9.7.11), I am always presented
with the following warning message:

---------------------------- Begin Quote -----------------------------
⛔ Warning (files): Missing ‘lexical-binding’ cookie in 
"~/.emacs.d/org-clock-save.el".
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.
----------------------------- End Quote ------------------------------

This apparently is a consequence of recent tightening of various policy
checks in Emacs.

Looking at the file org-clock-save.el, two possible approaches for
pacifying the warning come to my mind.

The first one would be to "downgrade" the file to a Lisp data file, and
do the evaluation and assignment to org-clock-stored-resume-clock
programmatically in org-clock.el.

The second one would be to just add a lexical binding cookie to the
org-clock-save.el file by changing line 3254 in org-clock.el, in the
function org-clock-save, from:

      (insert (format ";; %s - %s at %s\n"

to instead read:

      (insert (format ";; %s - %s at %s -*- lexical-binding: t; -*-\n"


Hoping to have helped, and looking forward to your thoughts,

  --alexander

Reply via email to