fix(emacs-lisp): 'defining as dynamic an already lexical var' error

Fix: #7653
Amend: 3bea4f66a844
This commit is contained in:
Henrik Lissner 2024-02-07 00:01:34 -05:00 committed by Yann Esposito (Yogsototh)
parent d3d857f9fa
commit 833dd0c067
Signed by untrusted user who does not match committer: yogsototh
GPG key ID: 7B19A4C650D59646

View file

@ -228,6 +228,8 @@ See `+emacs-lisp-non-package-mode' for details.")
;; expensive functionality, this will often introduce unexpected freezes
;; without this advice.
;; TODO: PR upstream?
(defvar org-inhibit-startup)
(defvar org-mode-hook)
(defadvice! +emacs-lisp--optimize-org-init-a (fn &rest args)
"Disable unrelated functionality to optimize calls to `org-mode'."
:around #'elisp-demos--export-json-file