1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

Merge branch 'bugfix'

This commit is contained in:
Ihor Radchenko 2024-09-22 18:15:19 +02:00
commit 28b6315108
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -2050,9 +2050,12 @@ Once computed, the results remain cached."
(unless (boundp 'org-texinfo-supports-math--cache)
(setq org-texinfo-supports-math--cache
(let ((math-example "1 + 1 = 2"))
(let* ((input-file (make-temp-file "test" nil ".info"))
(let* ((input-file (make-temp-file "test" nil ".texi"))
(output-file
(file-name-with-extension
(file-name-sans-extension input-file) "info"))
(input-content (string-join
(list (format "@setfilename %s" input-file)
(list (format "@setfilename %s" output-file)
"@node Top"
"@displaymath"
math-example
@ -2063,7 +2066,8 @@ Once computed, the results remain cached."
(when-let* ((output-file
;; If compilation fails, consider math to
;; be not supported.
(ignore-errors (org-texinfo-compile input-file)))
(ignore-errors (let ((inhibit-message t))
(org-texinfo-compile input-file))))
(output-content (with-temp-buffer
(insert-file-contents output-file)
(buffer-string))))