[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 28b6315108: Merge branch 'bugfix'
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 28b6315108: Merge branch 'bugfix' |
Date: |
Sun, 22 Sep 2024 12:58:33 -0400 (EDT) |
branch: externals/org
commit 28b6315108a55ffea8d2870b00311aaa06f5ca75
Merge: 5dc7028d7f fac0787e16
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
Merge branch 'bugfix'
---
lisp/ox-texinfo.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index d3cd5cde1c..1e90b40a48 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -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))))