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: Karl Berry
Subject: Re: Bug reports for texinfo (and 2 wishes)
Date: Mon, 13 Feb 2006 18:27:38 -0600

    > Attached dir.gz
    Was missing

I still get the error message instead of the top man page.  Using
INFOPATH=~/tmp ./ginfo ./foobar

However, messing around with gdb, I surmise that the man page was being
generated by this code at the end of info_get_node:

  /* If the node not found was "Top", try again with different case.  */
  if (!node && (nodename == NULL || strcasecmp (nodename, "Top") == 0))
    {
      node = info_get_node_of_file_buffer ("Top", file_buffer);
      if (!node)
        node = info_get_node_of_file_buffer ("top", file_buffer);
      if (!node)
        node = info_get_node_of_file_buffer ("TOP", file_buffer);
    }

With a cmdline arg of "./foobar", there is no nodename.
So this first tries man Top (nothing), and then man top (something).
(I don't understand why I didn't get the top man page.)

So I changed it to avoid all those subcalls if we are doing man pages:

  if (!node
      && strcasecmp (filename, MANPAGE_FILE_BUFFER_NAME) != 0
      && (nodename == NULL || strcasecmp (nodename, "Top") == 0))

See if that works for you ... (it's in CVS now)

(Is it just me, or is this code really hard to follow?)

Thanks,
k




reply via email to

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