On Sun, Nov 08, 2026 at 08:32:47PM +0100, Patrice Dumas wrote:
> Hello,
> 
> I have made a non-tree-like manual in the guide/topic way, but with
> an automatic node for the Top node.  Guide/topic, as I implement them in
> Texinfo lead to cycles (guide points to topic, and topic points back to
> guide).  The master menu has some duplication and the following warnings
> are emitted:
> 
> $ ./texi2any.pl -c CHECK_NORMAL_MENU_STRUCTURE=0 short_topic_guide.texi
> short_topic_guide.texi:6: warning: node `guide1' appears in its own menus
> short_topic_guide.texi:6: warning: node `guide1' appears in its own menus
> short_topic_guide.texi:23: warning: node `topic3' appears in its own menus
> short_topic_guide.texi:44: warning: node `guide2' appears in its own menus
> short_topic_guide.texi:6: warning: node `guide1' appears in its own menus
> short_topic_guide.texi:23: warning: node `topic3' appears in its own menus
> short_topic_guide.texi:44: warning: node `guide2' appears in its own menus
> short_topic_guide.texi:44: warning: node `guide2' appears in its own menus
> 
> 
> My feeling is that with non-tree-like manuals that require
> CHECK_NORMAL_MENU_STRUCTURE=0, such loops are likely to exist.  What
> about not outputting the "warning: node ...  appears in its own menus"
> if CHECK_NORMAL_MENU_STRUCTURE=0?

I don't really understand why the warning appears.  Here is the menu for
'guide1':

* Menu:

* topic1:: topic1 description
* topic3:: topic3 description

You can see there that 'guide1' is not in the menu.  So the warning appears
to be erroneous.

I can imagine there could be a possible warning like this if 'Top' appeared
in a menu somewhere, then the master menu in 'Top' could end up with an
entry with 'Top'.  In that case it might make sense simply to omit that
entry from the master menu.

Reply via email to