On Mon, Jun 30, 2025 at 04:51:24PM +0100, Gavin Smith wrote:
> 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.

The idea was to match the level of optimization currently given by
checking for "Index" in node name.

Another possibility could be to have a variable with the range of
indices, like

index-nodes: 4-8

which would mean that indices are in node 4 to node 8.

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

I do not think that it is a good idea.  It keeps on using what I
consider to be a bad idea, ie using the wordings (in english) to detect
a feature, which I think is a bad idea.


I think that using "Index" in node names when there are index markers is
wrong in any case, so my proposal would be to scan the whole document if
using a local variable does not look like a good idea.

-- 
Pat

Reply via email to