From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Robert Thorpe" Newsgroups: gmane.emacs.help Subject: Re: Why I can't use `info' in emacs? Date: 15 Dec 2006 06:02:15 -0800 Organization: http://groups.google.com Message-ID: <1166191335.058714.266970@80g2000cwy.googlegroups.com> References: <458268D7.6020203@163.com> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: sea.gmane.org 1166193708 7885 80.91.229.10 (15 Dec 2006 14:41:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2006 14:41:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 15 15:41:48 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GvEFt-0002uH-Bq for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Dec 2006 15:41:45 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GvEFs-0007hA-Mn for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Dec 2006 09:41:44 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!80g2000cwy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 163.244.62.65 Original-X-Trace: posting.google.com 1166191355 28594 127.0.0.1 (15 Dec 2006 14:02:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 15 Dec 2006 14:02:35 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.0 EMF1ASPROXY03 Complaints-To: groups-abuse@google.com Injection-Info: 80g2000cwy.googlegroups.com; posting-host=163.244.62.65; posting-account=hWoAPxMAAAAnBKSBz1ZivwUPPjEuve7bvVCHZQ8rhrluPfwcBJd92w Original-Xref: shelby.stanford.edu gnu.emacs.help:143959 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39567 Archived-At: Hadron Quark wrote: > Eli Zaretskii writes: > >> Date: Fri, 15 Dec 2006 17:20:23 +0800 > >> From: Ronald > >> 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.