unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
@ 2022-08-10 12:24 Stefan Kangas
  2022-08-10 12:39 ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kangas @ 2022-08-10 12:24 UTC (permalink / raw)
  To: 57114

Running `texinfo-format-buffer' in "doc/misc/auth.texi" leads to:

Debugger entered--Lisp error: (file-missing "Opening input file" "No
such file or directory"
"/home/skangas/wip/emacs/doc/misc/docstyle.texi")
  insert-file-contents("/home/skangas/wip/emacs/doc/misc/docstyle.texi"
nil nil nil nil)
  apply(insert-file-contents
("/home/skangas/wip/emacs/doc/misc/docstyle.texi" nil nil nil nil))
  openwith-file-handler(insert-file-contents
"/home/skangas/wip/emacs/doc/misc/docstyle.texi" nil nil nil nil)
  texinfo-format-buffer-1()
  texinfo-format-buffer(nil)
  funcall-interactively(texinfo-format-buffer nil)
  command-execute(texinfo-format-buffer)

The same seems to be true for most other manuals in doc/misc/*.texi but
I only tried a handful of them.  One idea is that any file including the
below line will have the same problem:

    @include docstyle.texi





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 12:24 bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace Stefan Kangas
@ 2022-08-10 12:39 ` Eli Zaretskii
  2022-08-10 12:45   ` Stefan Kangas
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-08-10 12:39 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 57114

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 10 Aug 2022 05:24:57 -0700
> 
> Running `texinfo-format-buffer' in "doc/misc/auth.texi" leads to:
> 
> Debugger entered--Lisp error: (file-missing "Opening input file" "No
> such file or directory"
> "/home/skangas/wip/emacs/doc/misc/docstyle.texi")
>   insert-file-contents("/home/skangas/wip/emacs/doc/misc/docstyle.texi"
> nil nil nil nil)
>   apply(insert-file-contents
> ("/home/skangas/wip/emacs/doc/misc/docstyle.texi" nil nil nil nil))
>   openwith-file-handler(insert-file-contents
> "/home/skangas/wip/emacs/doc/misc/docstyle.texi" nil nil nil nil)
>   texinfo-format-buffer-1()
>   texinfo-format-buffer(nil)
>   funcall-interactively(texinfo-format-buffer nil)
>   command-execute(texinfo-format-buffer)
> 
> The same seems to be true for most other manuals in doc/misc/*.texi but
> I only tried a handful of them.  One idea is that any file including the
> below line will have the same problem:
> 
>     @include docstyle.texi

Yes, because you invoke the command incorrectly (in the wrong
directory).

This is not a bug.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 12:39 ` Eli Zaretskii
@ 2022-08-10 12:45   ` Stefan Kangas
  2022-08-10 13:17     ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kangas @ 2022-08-10 12:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57114

Eli Zaretskii <eliz@gnu.org> 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?





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 12:45   ` Stefan Kangas
@ 2022-08-10 13:17     ` Eli Zaretskii
  2022-08-10 14:12       ` Stefan Kangas
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-08-10 13:17 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 57114

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 10 Aug 2022 14:45:02 +0200
> Cc: 57114@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> 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.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 13:17     ` Eli Zaretskii
@ 2022-08-10 14:12       ` Stefan Kangas
  2022-08-10 15:50         ` Eli Zaretskii
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Kangas @ 2022-08-10 14:12 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 57114

Eli Zaretskii <eliz@gnu.org> writes:

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

Should it?

> 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.

Do you mean that I should do this first, before I run
`M-x texinfo-format-buffer'?

    M-: (setq default-directory (expand-file-name "../emacs/"))





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 14:12       ` Stefan Kangas
@ 2022-08-10 15:50         ` Eli Zaretskii
  2022-08-12 15:30           ` Lars Ingebrigtsen
  0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2022-08-10 15:50 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: 57114

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 10 Aug 2022 07:12:19 -0700
> Cc: 57114@debbugs.gnu.org
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Why, will it make you change your mind about texinfmt?
> 
> Should it?

If you don't intend to allow for that, why ask?

> > 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.
> 
> Do you mean that I should do this first, before I run
> `M-x texinfo-format-buffer'?
> 
>     M-: (setq default-directory (expand-file-name "../emacs/"))

Yes, but you can do it much easier, with the "M-x cd" command.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace
  2022-08-10 15:50         ` Eli Zaretskii
@ 2022-08-12 15:30           ` Lars Ingebrigtsen
  0 siblings, 0 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-12 15:30 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Stefan Kangas, 57114

Eli Zaretskii <eliz@gnu.org> writes:

>> Do you mean that I should do this first, before I run
>> `M-x texinfo-format-buffer'?
>> 
>>     M-: (setq default-directory (expand-file-name "../emacs/"))
>
> Yes, but you can do it much easier, with the "M-x cd" command.

But this all means that the texinfmt.el don't really work (by default).
Since they've obviously not worked in quite a while, and it duplicates
functionality elsewhere (that actually works), I think we should
obsolete texinfmt.el.





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-08-12 15:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 12:24 bug#57114: 29.0.50; texinfo-format-buffer in auth.texi leads to backtrace Stefan Kangas
2022-08-10 12:39 ` Eli Zaretskii
2022-08-10 12:45   ` Stefan Kangas
2022-08-10 13:17     ` Eli Zaretskii
2022-08-10 14:12       ` Stefan Kangas
2022-08-10 15:50         ` Eli Zaretskii
2022-08-12 15:30           ` Lars Ingebrigtsen

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).