]> git.eshelyaron.com Git - emacs.git/commitdiff
makeinfo-run-command: Use texi2any when makeinfo doesn't exist
authorStefan Kangas <stefankangas@gmail.com>
Thu, 26 Dec 2024 20:06:29 +0000 (21:06 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Dec 2024 15:45:07 +0000 (16:45 +0100)
* lisp/textmodes/makeinfo.el (makeinfo-run-command): Use texi2any when
makeinfo does't exist.  (Bug#75123)

(cherry picked from commit 76170ea5a0dff45d3feedf523c4c6809f1a56a59)

lisp/textmodes/makeinfo.el

index 7e08111fddd5a3d2c1d54dc317804142c1d9c355..53555ea9af7d994c357dbfa45029c69d34514a1f 100644 (file)
   :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'.