* bug#57107: texinfo-format-buffer does not work in calc.texi
@ 2022-08-10 10:18 Stefan Kangas
2022-08-10 11:54 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Kangas @ 2022-08-10 10:18 UTC (permalink / raw)
To: 57107
Running `texinfo-format-buffer' in "doc/misc/calc.texi" leads to:
Debugger entered--Lisp error: (error "Texinfo file needs an
‘@setfilename FILENAME’ line")
error("Texinfo file needs an `@setfilename FILENAME' line")
texinfo-format-buffer-1()
texinfo-format-buffer(nil)
funcall-interactively(texinfo-format-buffer nil)
command-execute(texinfo-format-buffer)
Of course, that file does have:
@setfilename ../../info/calc.info
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#57107: texinfo-format-buffer does not work in calc.texi
2022-08-10 10:18 bug#57107: texinfo-format-buffer does not work in calc.texi Stefan Kangas
@ 2022-08-10 11:54 ` Eli Zaretskii
2022-08-10 12:40 ` Stefan Kangas
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2022-08-10 11:54 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 57107
> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 10 Aug 2022 03:18:33 -0700
>
> Running `texinfo-format-buffer' in "doc/misc/calc.texi" leads to:
>
> Debugger entered--Lisp error: (error "Texinfo file needs an
> ‘@setfilename FILENAME’ line")
> error("Texinfo file needs an `@setfilename FILENAME' line")
> texinfo-format-buffer-1()
> texinfo-format-buffer(nil)
> funcall-interactively(texinfo-format-buffer nil)
> command-execute(texinfo-format-buffer)
>
> Of course, that file does have:
>
> @setfilename ../../info/calc.info
It's a bug in calc.texi: it violates the following requirement of
Texinfo:
The '@setfilename' line specifies the name of the output file to be
generated. When present, it should be the first Texinfo command (that
is, after '\input texinfo'). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#57107: texinfo-format-buffer does not work in calc.texi
2022-08-10 11:54 ` Eli Zaretskii
@ 2022-08-10 12:40 ` Stefan Kangas
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2022-08-10 12:40 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 57107
close 57107 28.2
thanks
Eli Zaretskii <eliz@gnu.org> writes:
> It's a bug in calc.texi: it violates the following requirement of
> Texinfo:
>
> The '@setfilename' line specifies the name of the output file to be
> generated. When present, it should be the first Texinfo command (that
> is, after '\input texinfo'). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> ^^^^^^^^^^^^^^^^^^^^^^^^^^
Thanks, I'm now getting a different backtrace in calc.texi:
Debugger entered--Lisp error: (file-missing "Opening input file" "No
such file or directory"
"/home/skangas/wip/emacs-release/doc/misc/docstyle....")
insert-file-contents("/home/skangas/wip/emacs-release/doc/misc/docstyle...."
nil nil nil nil)
apply(insert-file-contents
("/home/skangas/wip/emacs-release/doc/misc/docstyle...." nil nil nil
nil))
openwith-file-handler(insert-file-contents
"/home/skangas/wip/emacs-release/doc/misc/docstyle...." nil nil nil
nil)
texinfo-format-buffer-1()
texinfo-format-buffer(nil)
funcall-interactively(texinfo-format-buffer nil)
command-execute(texinfo-format-buffer)
I've opened Bug#57114 for that.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-08-10 12:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-10 10:18 bug#57107: texinfo-format-buffer does not work in calc.texi Stefan Kangas
2022-08-10 11:54 ` Eli Zaretskii
2022-08-10 12:40 ` Stefan Kangas
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).