* lisp/org/org-clock.el (org-clock-save): Insert a lexical-binding cookie into org-clock-persist files. --- Emacs recently started warning about loading files without a lexical-binding cookie. This was getting triggered on my org-clock persistence file. This should fix it.
lisp/org/org-clock.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org/org-clock.el b/lisp/org/org-clock.el index 5fd0580d059..6d10fd89187 100644 --- a/lisp/org/org-clock.el +++ b/lisp/org/org-clock.el @@ -3251,7 +3251,7 @@ org-clock-save org-clock-has-been-used (not (file-exists-p org-clock-persist-file)))) (with-temp-file org-clock-persist-file - (insert (format ";; %s - %s at %s\n" + (insert (format ";; %s - %s at %s -*- lexical-binding: t; -*-\n" (file-name-nondirectory org-clock-persist-file) (system-name) (format-time-string (org-time-stamp-format t)))) -- 2.49.0