[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals-release/org f81d4fb4b3: Revert "org-latex-preview: Disa
From: |
ELPA Syncer |
Subject: |
[elpa] externals-release/org f81d4fb4b3: Revert "org-latex-preview: Disable previews in untrusted buffers" |
Date: |
Mon, 21 Apr 2025 03:59:08 -0400 (EDT) |
branch: externals-release/org
commit f81d4fb4b331428d64fa3af85ae89e4c41fb8eaf
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
Revert "org-latex-preview: Disable previews in untrusted buffers"
This reverts commit 7fac67e2e0a087319109ac222fa8e385740b29a0.
There is a difference between files explicitly marked untrusted and
simply not marked trusted. For most users, Org files will not be
marked trusted unless explicit action is taken. So, checking
`trusted-content-p' in `org-latex-preview' amounts for disabling latex
previews everywhere. We may instead need to query users, which is
much more complex feature.
---
lisp/org.el | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 3684053418..084e02497b 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -16201,16 +16201,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))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals-release/org f81d4fb4b3: Revert "org-latex-preview: Disable previews in untrusted buffers",
ELPA Syncer <=