Hi Karl!
[my brains is twisted from following with gdb the course of info ...]
On Mon, 13 Feb 2006, Karl Berry wrote:
> However, messing around with gdb, I surmise that the man page was being
> generated by this code at the end of info_get_node:
> See if that works for you ... (it's in CVS now)
Unfortunately not. BUt I believe that I found the reason:
FIrst: What do you get when you make
man Top
Second: I believe that the man page is created in the line BEFORE the
changed stuff, so here:
/* Look for the node. */
node = info_get_node_of_file_buffer (nodename, file_buffer);
/* If the node not found was "Top", try again with different case,
unless this was a man page. */
if (!node
&& strcasecmp (filename, MANPAGE_FILE_BUFFER_NAME) != 0
&& (nodename == NULL || strcasecmp (nodename, "Top") == 0))
in the
node = info_get_node_of_file_buffer (nodename, file_buffer);
nodename = NULL
file_buffer is something strange
from this we enter info_get_node_of_file_buffer where
nodename = "Top"
because it was NULL, and then
get_manpage_node (file_buffer, "Top")
is called.
And I assume that this returns the manpage for Top, which is here on my
system the same as man top.
> (Is it just me, or is this code really hard to follow?)
REALLY HARD!
Best wishes
Norbert
-------------------------------------------------------------------------------
Dr. Norbert Preining <preining AT logic DOT at> Università di Siena
gpg DSA: 0x09C5B094 fp: 14DF 2E6C 0307 BE6D AD76 A9C0 D2BF 4AA3 09C5 B094
-------------------------------------------------------------------------------
BLITTERLESS
The little slivers of bamboo picked off a cane chair by a nervous
guest which litter the carpet beneath and tell the chair's owner that
the whole piece of furniture is about to uncoil terribly and slowly
until it resembles a giant pencil sharpening.
--- Douglas Adams, The Meaning of Liff
_______________________________________________
Texinfo home page: http://www.gnu.org/software/texinfo/
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-texinfo