lisp/org.el (untrusted-content): Fix for Emacs <29.3

* lisp/org.el (untrusted-content): Define the variable ourselves when
not defined by Emacs.
This commit is contained in:
Ihor Radchenko 2024-03-25 14:32:09 +03:00
parent 656531edbe
commit d7f7b63a77
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 1 deletions

View File

@ -1136,7 +1136,9 @@ the following lines anywhere in the buffer:
:package-version '(Org . "8.0")
:type 'boolean)
(defvar untrusted-content) ; defined in files.el
(unless (boundp 'untrusted-content)
(defvar untrusted-content nil))
(defvar untrusted-content) ; defined in files.el since Emacs 29.3
(defvar org--latex-preview-when-risky nil
"If non-nil, enable LaTeX preview in Org buffers from unsafe source.