branch: externals-release/org commit 7cb7d68112b6f83e5f9d1e157b87a9ec9798efc6 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
org-publish-write-cache-file: Set `lexical-binding' as required by Emacs 31 * lisp/ox-publish.el (org-publish-write-cache-file): Explicitly set `lexical-binding' to suppress warning on Emacs master. Reported-by: Gregor Zattler <telegr...@gmx.net> Link: https://orgmode.org/list/87a54vqkhx....@no.lan --- lisp/ox-publish.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/ox-publish.el b/lisp/ox-publish.el index 51cb7433a1..9405610aa3 100644 --- a/lisp/ox-publish.el +++ b/lisp/ox-publish.el @@ -1231,6 +1231,7 @@ If FREE-CACHE, empty the cache." (error "Cannot find cache-file name in `org-publish-write-cache-file'")) (with-temp-file cache-file (let (print-level print-length) + (insert ";; -*- lexical-binding: nil; -*-\n") (insert "(setq org-publish-cache \ \(make-hash-table :test 'equal :weakness nil :size 100))\n") (maphash (lambda (k v)