Moin moin!
In reply to Wolfram Schneider, who wrote:
> Patrick M. Hausen writes:
> >Wie bringe ich Emacs oder info(1) bei, die Info-Files mehrerer
> >Verzeichnisse anzuzeigen?
> >Versucht habe ich es nach RTFM so:
> >
> >INFOPATH="/usr/share/info:/usr/local/info:/usr/local/lib/xemacs-19.13/info
> >export INFOPATH
> >
> >Klappt aber nicht - Xemacs zeigt immer nur das erste Verzeichnis der
> >Liste an, info(1) dito.
>
> Das Menue des Verzeichnises ist selber ein info-File (``dir''). Info
> durchsucht den INFOPATH nach der Datei ``dir'' und zeigt das erste
> gefundene an.
>
> Um die Info-Files mehrerer Verzeichnisse anzuzeigen,
> mußt Du in jedem Verzeichnis eine Datei ``localdir'' mit den Namen der
> Info-Files anlegen. Kopiere 'dir' nach 'localdir' und lösche den
> Anfang bis zur Zeile 'Menu'.
> Siehe auch /usr/local/lib/xemacs-19.13/info/dir
Hab' ich jetzt gemacht, funktioniert auch, wenn man darauf achtet, das
in allen Verzeichnissen _ausser_dem_ersten_ in INFOPATH zu tun.
--> Was passiert, wenn der Benutzer die Reihenfolge umstellt? Kann das
Teil nicht einfach alle 'dir' files zusammenpappen - laut Doku sollte
es das tun:
Info Files in Other Directories
===============================
If an Info file is not in the `info' directory, there are three ways
to specify its location:
* Write the pathname in the `dir' file as the second part of the
menu.
* If you are using Emacs, list the name of the file in a second `dir'
file, in its directory; and then add the name of that directory to
the `Info-directory-list' variable in your personal or site
initialization file.
This tells Emacs's Info reader reader where to look for `dir'
files. Emacs merges the files named `dir' from each of the listed
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directories. (In Emacs Version 18, you can set the
^^^^^^^^^^^^
`Info-directory' variable to the name of only one directory.)
* Specify the `info' directory name in an environment variable in
your `.profile' or `.cshrc' initialization file. (Only you and
others who set this environment variable will be able to find Info
files whose location is specified this way.)
[...]
Alternatively, you could write the following in your `.emacs' file:
(setq Info-directory-list
'("/usr/bob/manuals"
"/usr/local/emacs/info"))
This tells Emacs to merge the `dir' file from the `/usr/bob/manuals'
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directory with the `dir' file from the `"/usr/local/emacs/info'"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
directory. Info will list the `/usr/bob/manuals/info-test' file as a
menu entry in the `/usr/bob/manuals/dir' file.
Finally, you can tell Info where to look by setting the `INFOPATH'
environment variable in your `.cshrc' or `.profile' file.
Gut, ich kann natuerlich fuer alle User den INFOPATH in /etc/profile
reintun, aber toll ist das nicht so - selbst man(1) schafft das
besser.
Gruss, Danke fuer die Hilfe,
Paddy
-- Patrick M. Hausen Gerwigstr. 11 76131 Karlsruhe pmh(at)islay.sub.org "Two men say, they're Jesus - one of 'em must be wrong." (Dire Straits)Received on Sun 25 Feb 1996 - 23:39:18 CET