GNU bug report logs - #57107
texinfo-format-buffer does not work in calc.texi

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Wed, 10 Aug 2022 10:19:02 UTC

Severity: normal

Fixed in version 28.2

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57107 in the body.
You can then email your comments to 57107 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57107; Package emacs. (Wed, 10 Aug 2022 10:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 10 Aug 2022 10:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: bug-gnu-emacs <at> gnu.org
Subject: texinfo-format-buffer does not work in calc.texi
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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57107; Package emacs. (Wed, 10 Aug 2022 11:55:02 GMT) Full text and rfc822 format available.

Message #8 received at 57107 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 57107 <at> debbugs.gnu.org
Subject: Re: bug#57107: texinfo-format-buffer does not work in calc.texi
Date: Wed, 10 Aug 2022 14:54:39 +0300
> From: Stefan Kangas <stefan <at> 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'). ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ^^^^^^^^^^^^^^^^^^^^^^^^^^




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57107; Package emacs. (Wed, 10 Aug 2022 12:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 57107 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 57107 <at> debbugs.gnu.org
Subject: Re: bug#57107: texinfo-format-buffer does not work in calc.texi
Date: Wed, 10 Aug 2022 05:40:33 -0700
close 57107 28.2
thanks

Eli Zaretskii <eliz <at> 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.




bug marked as fixed in version 28.2, send any further explanations to 57107 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Wed, 10 Aug 2022 12:41:03 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.2, send any further explanations to 57107 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se> Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Thu, 11 Aug 2022 11:41:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Sep 2022 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 286 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.