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

org-texinfo-supports-math-p: Fix incompatibility with Emacs 27

* lisp/ox-texinfo.el (org-texinfo-supports-math-p): Avoid using
`file-name-with-extension', which is not yet available in Emacs 27.
This commit is contained in:
Ihor Radchenko 2024-10-12 14:50:52 +02:00
parent 96f695034c
commit 3117185dba
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -2039,8 +2039,7 @@ Once computed, the results remain cached."
(let ((math-example "1 + 1 = 2"))
(let* ((input-file (make-temp-file "test" nil ".texi"))
(output-file
(file-name-with-extension
(file-name-sans-extension input-file) "info"))
(concat (file-name-sans-extension input-file) ".info"))
(input-content (string-join
(list (format "@setfilename %s" output-file)
"@node Top"