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

Bug#369120: "table is corrupt" while viewing cpp infopage



Hi Justin,

I'm currently looking into some ancient pinfo bugs.  Among these is yours:

> Implementation-defined behavior (near the bottom)
> Scroll down one line at a time, using the down arrow; in an 25 row
>   xterm, I go down 13 times.
> Notice the "*Note fdollars-in-identifiers::."  reference.  It is in
> red, which means that it is a hyperlink to another part of the info
> manual.  Press "enter" to try to follow the reference.  
> Actual Result:
>   "Tag table is corrupt, trying to fix... (press a key to continue)"
> Expected result:
> Some documentation for that option.

The good news is that I can reproduce the isseu with cpp-doc-4.9.

The bad new is that the problem seems to be that pinfo currently only
supports Node hyperlinks and not Anchors (see
https://www.gnu.org/software/texinfo/manual/texinfo/html_node/Info-Format-Tag-Table.html
for the difference between those).  Specifically, pinfo assumes all
links are to Nodes, and so after seeking to the correct file position,
it looks for the first new Node below.  This explains why you are
getting section 13 instead of the reference to the specific option you
were looking for (which is in section 12).

This is not quite easy to solve, and I'm not sure that it is doable
without rewriting all of the tag table code...
I'll think some more about an easy fix...

Gr,
Bas.

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: