help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Opening an info page by command name, take 2


From: Sebastian Tennant
Subject: Re: Opening an info page by command name, take 2
Date: Tue, 11 Dec 2007 23:30:15 +0200
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Quoth <address@hidden>:
> Say I want to get help about grep and also about gzip. With man I would
> just type "man grep" and "man gzip". From the command line I can type
> "info grep" and "info gzip" and get similar pages. With emacs, if I
> only now the words "grep" and "gzip", I cannot open those pages.

You have to know the names of your info files.  On Debian systems they
live in /usr/shre/info:

 $ ls /usr/share/info/*.info.gz
 /usr/share/info/autosprintf.info.gz
 /usr/share/info/bash3ref.info.gz
 /usr/share/info/bbdb.info.gz
 /usr/share/info/bzip2.info.gz
 /usr/share/info/coreutils.info.gz
 /usr/share/info/cpio.info.gz
 /usr/share/info/cvs.info.gz
 /usr/share/info/cvsclient.info.gz
 /usr/share/info/dc.info.gz
 /usr/share/info/ed.info.gz
 /usr/share/info/emacs-w3m-ja.info.gz
 /usr/share/info/emacs-w3m.info.gz
 /usr/share/info/fastjar.info.gz
 /usr/share/info/find.info.gz
 /usr/share/info/gettext.info.gz
 /usr/share/info/gnutls.info.gz
 /usr/share/info/gzip.info.gz
 /usr/share/info/history.info.gz
 /usr/share/info/ipc.info.gz
 /usr/share/info/ispell.info.gz
 /usr/share/info/jabber.info.gz
 /usr/share/info/m4.info.gz
 /usr/share/info/menu.info.gz
 /usr/share/info/mikmod.info.gz
 /usr/share/info/mtools.info.gz
 /usr/share/info/nano.info.gz
 /usr/share/info/nxml-mode.info.gz
 /usr/share/info/readline.info.gz
 /usr/share/info/recode.info.gz
 /usr/share/info/rluserman.info.gz
 /usr/share/info/sed.info.gz
 /usr/share/info/sharutils.info.gz
 /usr/share/info/time.info.gz
 /usr/share/info/wget.info.gz

The format of the info function is:

 (info "(<filename>)<name-of-node>")

You don't need to know the name of a particular node but you do need
to know the name of the info file, i.e.,

  $ emacs -Q --eval '(info "(bash3ref)")'

is OK.

Sebastian.

P.S.  I've just noticed that the above command only works with the long
      option (--eval) and not with the short option '-e'.  Is this a
      feature I was unaware of, anyone?







reply via email to

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