branch: externals-release/org
commit a6bba4832f538a3223a4c8905a9e55be351846ca
Author: Arsen Arsenović <[email protected]>
Commit: Ihor Radchenko <[email protected]>
org-clock: insert lexical binding cookie into persisted files
* lisp/org/org-clock.el (org-clock-save): Insert a lexical-binding
cookie into org-clock-persist files.
---
lisp/org-clock.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 933c054874..c127fdc44a 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -3251,7 +3251,7 @@ The details of what will be saved are regulated by the
variable
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))))