Re: warning about missing menu items?

Patrice Dumas <[email protected]>
Newsgroups gmane.comp.tex.texinfo.general
Message-ID <[email protected]>
On Sun, Jul 16, 2023 at 02:46:10PM -0600, Karl Berry wrote:
> I seem to recall that in the past there was a warning when a
> normally-structured manual had a missing menu entry? That doesn't seem
> to happen now, and I failed to find anything in the manual. Am I just
> going crazy :)?

A warning was recently readded for that case, so in the development
version there is a warning.  With 7.0.3, to get the warning, you need to
pass
  -c CHECK_NORMAL_MENU_STRUCTURE=1

As a side note, to me it would be fine if there was no warning in the
default case as it could be on purpose that chap2 is not in the menu.

Another possibility would be to pass a tree transformation to get texi2any
to generate the missing menu entry:

./texi2any.pl -c TREE_TRANSFORMATIONS=complete_tree_nodes_menus file.texi

> I can run M-x texinfo-all-menus-update, but still, I thought makeinfo
> also noticed this.
> 
> For example, there are no warnings from makeinfo
> (texi2any (GNU texinfo) 7.0.3) about the following. --thanks, karl.
> 
> \input texinfo
> 
> @node Top
> @top Missing
> 
> @menu
> * chap1::
> @end menu
> 
> @node chap1
> @chapter chap1
> 
> @node chap2
> @chapter chap2
> 
> @bye
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.