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
1 changed files with 1 additions and 2 deletions

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"