makeinfo-run-command: Use texi2any when makeinfo doesn't exist

* lisp/textmodes/makeinfo.el (makeinfo-run-command): Use texi2any when
makeinfo does't exist.  (Bug#75123)
This commit is contained in:
Stefan Kangas 2024-12-26 21:06:29 +01:00
parent 43b81b7eca
commit 76170ea5a0

View file

@ -56,10 +56,14 @@
:group 'docs)
(defcustom makeinfo-run-command "makeinfo"
(defcustom makeinfo-run-command
(cond ((executable-find "makeinfo") "makeinfo")
((executable-find "texi2any") "texi2any")
(t "makeinfo"))
"Command used to run `makeinfo' subjob.
The name of the file is appended to this string, separated by a space."
:type 'string)
:type 'string
:version "31.1")
(defcustom makeinfo-options "--fill-column=70"
"String containing options for running `makeinfo'.