bug-texinfo
[Top][All Lists]
Advanced

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

Re: Bug reports for texinfo (and 2 wishes)


From: Norbert Preining
Subject: Re: Bug reports for texinfo (and 2 wishes)
Date: Fri, 24 Feb 2006 12:29:40 +0100
User-agent: Mutt/1.3.28i

Hi Karl!

Did this one get lost? Especially the question concerning
        man Top
would be interesting ;-)

What do you say about the other observation?

Best wishes

Norbert

On Don, 16 Feb 2006, Norbert Preining wrote:
> 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
-------------------------------------------------------------------------------
AHENNY (adj.)
The way people stand when examining other people's bookshelves.
                        --- Douglas Adams, The Meaning of Liff




reply via email to

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