From: Stefan Kangas <stefankangas@gmail.com>
To: 75123@debbugs.gnu.org
Subject: bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible
Date: Thu, 26 Dec 2024 20:12:54 +0000 [thread overview]
Message-ID: <CADwFkmnW2miRHR57jzi7pkVUzNX5-qY_nakS0d8+wxTWKxYhVQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 72 bytes --]
Severity: wishlist
Please see the attached patch, intended for master.
[-- Attachment #2: 0001-Set-makeinfo-run-command-to-texi2any-when-possible.patch --]
[-- Type: text/x-patch, Size: 1362 bytes --]
From 9563aeabb5d48893c5e1054dd0c1172d20c0bed2 Mon Sep 17 00:00:00 2001
From: Stefan Kangas <stefankangas@gmail.com>
Date: Thu, 26 Dec 2024 21:06:29 +0100
Subject: [PATCH] Set makeinfo-run-command to texi2any when possible
In recent Texinfo, "makinfo" is an alias for "texi2any". Make
`makeinfo-run-command` heed this request in the texinfo documentation:
"Going forward, we ask authors of Texinfo documents to use only
texi2any."
See (info "(texinfo) History").
* lisp/textmodes/makeinfo.el (makeinfo-run-command): Prefer texi2any
to makeinfo when it is available.
---
lisp/textmodes/makeinfo.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/lisp/textmodes/makeinfo.el b/lisp/textmodes/makeinfo.el
index 7e08111fddd..bb7abb90b21 100644
--- a/lisp/textmodes/makeinfo.el
+++ b/lisp/textmodes/makeinfo.el
@@ -56,10 +56,13 @@ makeinfo
:group 'docs)
-(defcustom makeinfo-run-command "makeinfo"
+(defcustom makeinfo-run-command
+ (cond ((executable-find "texi2any") "texi2any")
+ ((executable-find "makeinfo") "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.47.1
next reply other threads:[~2024-12-26 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 20:12 Stefan Kangas [this message]
2024-12-27 7:16 ` bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible Eli Zaretskii
2024-12-27 12:55 ` Eli Zaretskii
2024-12-27 14:05 ` Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADwFkmnW2miRHR57jzi7pkVUzNX5-qY_nakS0d8+wxTWKxYhVQ@mail.gmail.com \
--to=stefankangas@gmail.com \
--cc=75123@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).