texinfo-devel
[Top][All Lists]
Advanced

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

Re: [bug #38168] support --all


From: Karl Berry
Subject: Re: [bug #38168] support --all
Date: Sat, 17 Aug 2013 00:05:17 GMT

    Implemented in revision 5255.  [--all] works both with -w and without it.

Sergey - I was a bit surprised at the results I got in practice, so I
thought I'd write it down.  I'm not sure it's necessary to change
anything, but it might be desirable.  Although it's additional work.

The original request
(http://lists.gnu.org/archive/html/bug-texinfo/2013-01/msg00042.html)
was about replicating in Info the functionality of man -wa, which shows
all the man pages (along MANPATH or whatever), as in:

$ man -aw automake
/usr/local/gnu/man/man1/automake-1.14.1
/usr/share/man/man1/automake-1.11.1.gz

That is, I have the "system" version of automake in /usr as usual, and I
installed my own automake from the original source in /usr/local/gnu.

Now, with info, the results are not as helpful:
$ info -aw automake
/usr/local/gnu/share/info/automake.info
/usr/local/gnu/share/info/automake.info
*manpages*
/usr/local/gnu/share/info/automake.info
/usr/local/gnu/share/info/automake.info

>From the --debug output, it seems that this happens because there are
numerous dir files on the system (as is usual), most of which have an
entry for automake like:
* Automake: (automake).         Making GNU standards-compliant Makefiles.

But since there is no explicit path in these dir entries (as is also
usual), they all resolve to the first automake.info found.  Hence the
repetition.  (I am not sure why there is only one *manpages* entry; in
other tests on my system, e.g., info -aw as, I get multiple *manpages*
results too.)

I think the output actually desired is something more like this:
/usr/local/gnu/share/info/automake.info
/usr/share/info/automake.info.gz
*manpages*

I guess that would mean checking for the manual's file in the same
directory as the dir file, unlike Info's usual algorithm.

Wdyt?

karl



reply via email to

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