From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "alexduller@googlemail.com" Newsgroups: gmane.emacs.help Subject: Re: Adding a symbol help mode Date: Mon, 2 Jun 2008 00:14:49 -0700 (PDT) Organization: http://groups.google.com Message-ID: <052f4a2d-099e-47a9-8f5f-14de1e097d56@b1g2000hsg.googlegroups.com> References: <887ec515-9681-4685-ad10-74a46143c24e@b1g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212392445 29058 80.91.229.12 (2 Jun 2008 07:40:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 07:40:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 02 09:41:26 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K34fT-00082g-QP for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 09:41:24 +0200 Original-Received: from localhost ([127.0.0.1]:55891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K34eh-0003YD-To for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 03:40:35 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!b1g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 88.105.37.82 Original-X-Trace: posting.google.com 1212390890 31235 127.0.0.1 (2 Jun 2008 07:14:50 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 2 Jun 2008 07:14:50 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b1g2000hsg.googlegroups.com; posting-host=88.105.37.82; posting-account=dU3olgoAAACE0q1XStqvqJiZfqljhVyh User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159059 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:54420 Archived-At: On Jun 1, 3:04=A0pm, j...@pobox.com (John Paul Wallington) wrote: > "alexdul...@googlemail.com" writes: > > Regarding info files, how do I add a symbol help mode? > > Use the function `info-lookup-maybe-add-help' defined in the `info-look' > library. =A0It contains many stanzas initialising common modes that you > can use as examples. Thanks. The problem was, that the function didn't come up with I used info-lookup- to view the list of functions. hehe. However, the problem now, is that each of the symbols in the info file needs to be referenced with a colon on the end. For example, to view the node for 'set', 'set:' must be given. I'm using the following to add tcl-mode help in my .emacs file: (eval-after-load "info-look" '(info-lookup-add-help :mode 'tcl-mode :regexp "[^][()'\" \t\n]+" :ignore-case t :doc-spec '(("(TclCmd)Top" nil nil nil)))) Each menu item in the info file is as such: * Menu Item:: description Any ideas why the extra colon is needed when referencing a node using 'info-lookup-symbol'? I've tried editing the menu items to have just one colon, but then info doesn't recognize them as items... thanks.