* bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible
@ 2024-12-26 20:12 Stefan Kangas
2024-12-27 7:16 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Kangas @ 2024-12-26 20:12 UTC (permalink / raw)
To: 75123
[-- 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible
2024-12-26 20:12 bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible Stefan Kangas
@ 2024-12-27 7:16 ` Eli Zaretskii
2024-12-27 12:55 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-12-27 7:16 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 75123
> From: Stefan Kangas <stefankangas@gmail.com>
> Date: Thu, 26 Dec 2024 20:12:54 +0000
>
> Please see the attached patch, intended for master.
>
> 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").
Sorry, I'm against this change. People still have old versions of
Texinfo installed, including those where texi2any was not even
present. I understand what the Texinfo developers say as advice to
people who install latest version of Texinfo, not as a general rule to
other programs which invoke makeinfo.
In practice, in latest versions, 'makeinfo' is just a copy (or even a
symlink) to texi2any. So we gain absolutely nothing by this change,
while the disadvantages for users who have old versions of makeinfo
are clear and present.
So let's not make this change.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible
2024-12-27 7:16 ` Eli Zaretskii
@ 2024-12-27 12:55 ` Eli Zaretskii
2024-12-27 14:05 ` Stefan Kangas
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2024-12-27 12:55 UTC (permalink / raw)
To: stefankangas; +Cc: 75123
> Cc: 75123@debbugs.gnu.org
> Date: Fri, 27 Dec 2024 09:16:59 +0200
> From: Eli Zaretskii <eliz@gnu.org>
>
> > 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").
>
> Sorry, I'm against this change. People still have old versions of
> Texinfo installed, including those where texi2any was not even
> present. I understand what the Texinfo developers say as advice to
> people who install latest version of Texinfo, not as a general rule to
> other programs which invoke makeinfo.
>
> In practice, in latest versions, 'makeinfo' is just a copy (or even a
> symlink) to texi2any. So we gain absolutely nothing by this change,
> while the disadvantages for users who have old versions of makeinfo
> are clear and present.
A few more thoughts:
Some users could have local scripts named "makeinfo" somehow tailored
to DTRT for whatever reasons. Invoking texi2any instead will break
those users, for no good reason.
In addition, executable-find looks for files with extensions in the
order specified by exec-suffixes, which could be different from the
order the shell looks for executables. So this change might produce
subtle differences in behavior, at least in some cases.
I could support doing this the other way around: if "makeinfo" is not
found as an executable, fall back to texi2any (if that exists). But
in that case, we need to make sure makeinfo-run-command never ends up
being nil, because AFAICT the code is not prepared for that. IOW, if
neither "makeinfo" nor "texi2any" is found, the value should be
"makeinfo", as it was before, not nil.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible
2024-12-27 12:55 ` Eli Zaretskii
@ 2024-12-27 14:05 ` Stefan Kangas
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Kangas @ 2024-12-27 14:05 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 75123-done
Eli Zaretskii <eliz@gnu.org> writes:
> I could support doing this the other way around: if "makeinfo" is not
> found as an executable, fall back to texi2any (if that exists). But
> in that case, we need to make sure makeinfo-run-command never ends up
> being nil, because AFAICT the code is not prepared for that. IOW, if
> neither "makeinfo" nor "texi2any" is found, the value should be
> "makeinfo", as it was before, not nil.
Thanks, I installed that change. Closing this bug.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-27 14:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-26 20:12 bug#75123: [PATCH] Set makeinfo-run-command to texi2any when possible Stefan Kangas
2024-12-27 7:16 ` Eli Zaretskii
2024-12-27 12:55 ` Eli Zaretskii
2024-12-27 14:05 ` Stefan Kangas
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.