From: "Robert Thorpe" <rthorpe@realworldtech.com>
Subject: Re: Why I can't use `info' in emacs?
Date: 15 Dec 2006 06:02:15 -0800 [thread overview]
Message-ID: <1166191335.058714.266970@80g2000cwy.googlegroups.com> (raw)
In-Reply-To: <kszm9pgtg9.fsf@gmail.com>
Hadron Quark wrote:
> Eli Zaretskii <eliz@gnu.org> writes:
> >> Date: Fri, 15 Dec 2006 17:20:23 +0800
> >> From: Ronald <followait@163.com>
> >> CC: help-gnu-emacs@gnu.org
> >> >
> >> I'd like to see the info page for the word where the point is.
> >> When I type ``C-h C-i" it says there is no info node for that word.
> >> But in bash there is.
> >
> > What version of Emacs do you have? I assume it's Emacs 21.x, because
> > in that version `C-h C-i' was running the command info-lookup-symbol,
> > and it was buggy. In Emacs 22, info-lookup-symbol is bound to `C-h S',
> > and it does work for me in the situation you described (point is on
> > printf). Please consider upgrading.
> >
> >> >> ``man 3 printf" , how to do it with info?
> >> >
> >> > There are several ways. If you are sure you are looking for the C
> >> > library function `printf', type "C-h S c-mode RET printf RET".
> >>
> >> I think the key sequence is too long for convenience.
> >
> > Don't be ridiculous, it's exactly 3 characters longer than "man 3
> > printf". And if you are already in a buffer whose major mode is C,
> > and point is on `printf', all you need to type is "C-h S RET", which
> > is only 3 keystrokes.
>
> How is one supposed to set this up?
This works if you are on a fairly GNUy system. One that has GNUlibc,
such as a "linux" distribution. If this is the case then there should
be an info node called libc or glibc. If that is the case then just
pressing C-h S over a symbol documented in the manual should bring up
that symbols info-page.
Possible reasons why this doesn't work are:-
* Distribution does not set Info paths correctly
* Distribution does not ship with Glibc manual
If either of the above are the case then complain loudly.
This keystroke is C-h C-i in Emacs21 and C-h S in Emacs22.
> On my emacs-snapshot printf is not a documented symbol.
It's not documented by Emacs, it's documented in the Info docs that
come with GLibc.
> I have
>
> (defun jump-man-page ()
> (interactive)
> (manual-entry (current-word))
> )
>
> assigned to a key in cc-mode
As other posters have said C-h S is better, the GNU info pages are
better than their man-pages.
next prev parent reply other threads:[~2006-12-15 14:02 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-14 23:59 Why I can't use `info' in emacs? Ronald
2006-12-15 6:50 ` Harald Hanche-Olsen
2006-12-15 7:15 ` Ronald
2006-12-15 12:40 ` Robert Thorpe
2006-12-15 14:18 ` Eli Zaretskii
2006-12-15 8:39 ` Eli Zaretskii
[not found] ` <mailman.1908.1166172009.2155.help-gnu-emacs@gnu.org>
2006-12-15 9:20 ` Ronald
2006-12-15 11:17 ` Eli Zaretskii
[not found] ` <mailman.1911.1166181447.2155.help-gnu-emacs@gnu.org>
2006-12-15 13:49 ` Hadron Quark
2006-12-15 14:02 ` Robert Thorpe [this message]
2006-12-15 14:13 ` Hadron Quark
2006-12-15 14:25 ` Hadron Quark
2006-12-15 14:57 ` Robert Thorpe
2006-12-15 15:49 ` Hadron Quark
2006-12-15 17:41 ` Robert Thorpe
2006-12-18 0:10 ` Giorgos Keramidas
2006-12-18 11:51 ` Robert Thorpe
2006-12-20 1:13 ` Giorgos Keramidas
2006-12-20 16:51 ` Robert Thorpe
2006-12-15 15:57 ` Eli Zaretskii
[not found] ` <mailman.1922.1166198262.2155.help-gnu-emacs@gnu.org>
2006-12-15 16:27 ` Hadron Quark
2006-12-15 18:11 ` Robert Thorpe
2006-12-16 19:21 ` Hadron Quark
2006-12-16 21:51 ` Eli Zaretskii
[not found] ` <mailman.1996.1166305877.2155.help-gnu-emacs@gnu.org>
2006-12-16 22:30 ` Hadron Quark
2006-12-17 4:12 ` Eli Zaretskii
[not found] ` <mailman.2006.1166328762.2155.help-gnu-emacs@gnu.org>
2006-12-18 12:54 ` Hadron Quark
2006-12-18 20:01 ` Eli Zaretskii
2006-12-18 10:44 ` Robert Thorpe
2006-12-18 12:56 ` Hadron Quark
2006-12-18 13:12 ` Robert Thorpe
2006-12-18 17:11 ` Hadron Quark
2006-12-18 17:27 ` Robert Thorpe
2006-12-16 12:04 ` Eli Zaretskii
2006-12-15 9:20 ` Ronald
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1166191335.058714.266970@80g2000cwy.googlegroups.com \
--to=rthorpe@realworldtech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).