bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: footer navigation headers


From: Gavin Smith
Subject: Re: footer navigation headers
Date: Sun, 21 Feb 2021 10:23:03 +0000
User-agent: Mutt/1.9.4 (2018-02-28)

On Sun, Feb 21, 2021 at 12:21:23AM +0100, Patrice Dumas wrote:
> On Sat, Feb 20, 2021 at 10:05:16PM +0000, Gavin Smith wrote:
> > On Sat, Feb 20, 2021 at 05:18:18PM +0100, Patrice Dumas wrote:
> > > This is not easy to determine which warning to output since the node is
> > > automatically added during output.  I think that we have two
> > > possibilities, 
> > > * pass to Structuring.pm the information that nodes will be generated 
> > >   automatically and add a special case for nodes in generated menus.  
> > > * modify the tree before or in Texinfo::Structuring::nodes_tree().
> > 
> > The warnings that are output are a
> > regression from texi2any 6.7 which managed files like these with
> > no problem.
> 
> I agree, this needs to be fixed.
> 
> What about first removing those unreferenced warnings when FORMAT_MENU
> is mini_toc?  We know that in that case there will be spurious warnings
> of menus are omitted.

I've done this.

> > Maybe CHECK_NORMAL_MENU_STRUCTURE would do most of the job?
> 
> I just tested, and it doesn't seems to add new warnings.
>  
> > A node could also be referenced through a cross-reference and I
> > don't think the existing code checks for this.  I know we discussed
> > this a few months ago and I worry we are going over the same ground
> > again.
> 
> We discussed a lot on that subject, but I do not remember going over
> that argument of cross references.  I think that I can check if the
> node is the target of cross references and do not warn in that case.

I saw that you had made a change to check the cross-references too.

I wonder if nodes_tree can be only called from texi2any.pl if menus
are relevant to the structure.  There could be another function
that does what nodes_tree does but does not deal with menus at all.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]