On Mon, Jun 30, 2025 at 04:04:12PM +0300, Eli Zaretskii wrote:
> > Date: Mon, 30 Jun 2025 14:48:40 +0200
> > From: [email protected]
> > Cc: [email protected], [email protected]
> > 
> > On Mon, Jun 30, 2025 at 02:47:01PM +0300, Eli Zaretskii wrote:
> > > > Date: Sun, 29 Jun 2025 18:59:22 +0200
> > > > From: [email protected]
> > > > 
> > > > What about adding a 'Local Variables' with the name of the first node
> > > > with indices with makeinfo and using that instead of "Index" in nodes
> > > > names to determine the first node with indices as I proposed?
> > > 
> > > Is it a valid assumption that the Index nodes are always at the end of
> > > an Info document?
> > 
> > It seems to be often the case, indices are most often in appendices.
> 
> ISTR seeing Info files where Index is right at the beginning.

Yes, I remember the same.  I feel like the Emacs manual used to
be like this.

I am not a fan of the idea of adding a Local Variable for
this.  Space is limited in that section.  From Info.pm:

    # Note: Info readers expect the Local Variables section to be
    # under 1000 bytes in length so not many variables can be added here.

Currently, there is only "coding" and "Info-documentlanguage".

A local variable to say where the first index node is would have
a very specific meaning with an implementation optimisation in mind.
However, I doubt that this optimisation would be necessary.

If we wanted to mark where nodes containing indices were in a more
efficient way, we could check anchor names ("Ref:" in the tags table)
for containing "Index" as well, and check the referenced nodes.  I
believe such anchors aren't used at present for finding index nodes.


Reply via email to