Subject: Re: bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace

From: Eli Zaretskii <[email-masked]>
Date: Wed, 10 Aug 2022 16:17:23 +0300

> From: Stefan Kangas <[email-masked]>
> Date: Wed, 10 Aug 2022 14:45:02 +0200
> Cc: [email-masked]
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > Yes, because you invoke the command incorrectly (in the wrong
> > directory).
> >
> > This is not a bug.
> 
> I don't understand what you mean by "the wrong directory", and nothing
> like that is explained in the `texinfo-format-buffer' docstring.
> 
> Care to elaborate?

Why, will it make you change your mind about texinfmt?

Anyway: our manuals nowadays pass the -I$(srcdir)/../emacs switch to
makeinfo, whereas invoking texinfo-format-buffer doesn't do that.  So
if you want it to process @include correctly, you should invoke the
command with default-directory set to the directory of the included
file.