diff options
author | Kyle Meyer <kyle@kyleam.com> | 2023-03-26 17:01:14 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2023-03-26 17:01:30 -0400 |
commit | a8c23677d3939b8af1bcddb63244fe7b5bb384a4 (patch) | |
tree | e29f125ec41eade590d01b45efe10ea3a7ee90f7 /lisp/org/ox-texinfo.el | |
parent | 45b16bfb496025d9f21f7cdccb6a25a0be83a26f (diff) | |
download | emacs-a8c23677d3939b8af1bcddb63244fe7b5bb384a4.tar.gz |
Update to Org 9.6.2
Diffstat (limited to 'lisp/org/ox-texinfo.el')
-rw-r--r-- | lisp/org/ox-texinfo.el | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/org/ox-texinfo.el b/lisp/org/ox-texinfo.el index 4ff482cc3f5..f822f3d110c 100644 --- a/lisp/org/ox-texinfo.el +++ b/lisp/org/ox-texinfo.el @@ -2037,10 +2037,13 @@ Once computed, the results remain cached." "\n"))) (with-temp-file input-file (insert input-content)) - (let* ((output-file (org-texinfo-compile input-file)) - (output-content (with-temp-buffer - (insert-file-contents output-file) - (buffer-string)))) + (when-let* ((output-file + ;; If compilation fails, consider math to + ;; be not supported. + (ignore-errors (org-texinfo-compile input-file))) + (output-content (with-temp-buffer + (insert-file-contents output-file) + (buffer-string)))) (let ((result (string-match-p (regexp-quote math-example) output-content))) (delete-file input-file) |