On Sun, Nov 08, 2026 at 07:52:19PM +0000, Gavin Smith wrote:
> On Sun, Nov 08, 2026 at 08:32:47PM +0100, Patrice Dumas wrote:
> > $ ./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.

It is because of the automatic generation of the Top node master menu.
When the master menu is generated, there are cycles, because, for
example, 'topic1' is in 'guide1' menu, and 'guide1' is in 'topic1' menu.

The generated master menu looks like the following with redundant
entries (cut):

 -- The Detailed Node Listing --

guide 1 for an easy use

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

topic1

* guide1:: guide 1

topic3

* guide1:: guide 1
* guide2:: guide 2

guide 2 for an in depth use

* topic3:: topic3 description
* topic4:: topic4 description

topic4

* guide2:: guide 2

guide 2 for an in depth use

* topic3:: topic3 description
* topic4:: topic4 description

topic3

* guide1:: guide 1
* guide2:: guide 2

guide 1 for an easy use

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

....

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

That is something like that that happens, but the master menu is
automatically generated.


As as side note, I just added that test with FORMAT_MENU set to menu or
menu_no_detailmenu.

-- 
Pat

Reply via email to