branch: externals/org
commit dcc54ffd1fb06739c5214b29868bb32643a96ec7
Merge: f4df8b06d2 f81d4fb4b3
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    Merge branch 'bugfix'
---
 lisp/org.el | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/lisp/org.el b/lisp/org.el
index f8669f3f7b..78e8c06922 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16241,16 +16241,7 @@ fragments in the buffer."
   (interactive "P")
   (cond
    ((not (display-graphic-p)) nil)
-   ((and
-     ;; Since Emacs 30, prefer `trusted-content-p' API.
-     (not (fboundp 'trusted-content-p))
-     untrusted-content
-     (not org--latex-preview-when-risky))
-    nil)
-   ((and (fboundp 'trusted-content-p) ; Available since Emacs 30
-         (not (trusted-content-p))
-         (not org--latex-preview-when-risky))
-    nil)
+   ((and untrusted-content (not org--latex-preview-when-risky)) nil)
    ;; Clear whole buffer.
    ((equal arg '(64))
     (org-clear-latex-preview (point-min) (point-max))

Reply via email to