org-latex-preview: Tweak to be rebased later

* lisp/org-latex-preview.el (org-latex-preview--cache-image):
This commit is contained in:
TEC 2024-01-10 14:51:25 +08:00
parent 76a24ffe8d
commit 7a4afe164d
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 6 additions and 4 deletions

View File

@ -2684,10 +2684,12 @@ The caching location is set by CACHE, which defaults to
`org-latex-preview-cache'. It should be the symbol \"persist\",
\"temp\", or an existing directory path as a string."
(if (not path)
(display-warning
'(org latex-preview put-cache)
(format "Tried to cache %S without a path, skipping. This should not happen, please report it as a bug to the Org mailing list (M-x org-submit-bug-report)." key)
:warning)
(progn
(display-warning
'(org latex-preview put-cache)
(format "Tried to cache %S without a path, skipping. This should not happen, please report it as a bug to the Org mailing list (M-x org-submit-bug-report)." key)
:warning)
nil)
(pcase org-latex-preview-cache
('persist
(let ((label-path-info