From d8b758e573e7fa6dec019966f034cb66d7ba5ef5 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 26 Dec 2024 21:06:29 +0100 Subject: [PATCH] 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) (cherry picked from commit 76170ea5a0dff45d3feedf523c4c6809f1a56a59) --- lisp/textmodes/makeinfo.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/textmodes/makeinfo.el b/lisp/textmodes/makeinfo.el index 7e08111fddd..53555ea9af7 100644 --- a/lisp/textmodes/makeinfo.el +++ b/lisp/textmodes/makeinfo.el @@ -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'. -- 2.39.5