* Adding a symbol help mode
@ 2008-06-01 13:38 alexduller
2008-06-01 14:04 ` John Paul Wallington
2008-06-01 18:09 ` Eli Zaretskii
0 siblings, 2 replies; 4+ messages in thread
From: alexduller @ 2008-06-01 13:38 UTC (permalink / raw)
To: help-gnu-emacs
Regarding info files, how do I add a symbol help mode?
I have the Tcl manual formatted as info files and have added entries
to a dir file. When I use C-h S to lookup a symbol, it asks for a
symbol help mode. However, tcl-mode is not there.
I've scoured the emacs manual, the wiki and irc channel for an answer,
but to no avail.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding a symbol help mode
2008-06-01 13:38 Adding a symbol help mode alexduller
@ 2008-06-01 14:04 ` John Paul Wallington
2008-06-02 7:14 ` alexduller
2008-06-01 18:09 ` Eli Zaretskii
1 sibling, 1 reply; 4+ messages in thread
From: John Paul Wallington @ 2008-06-01 14:04 UTC (permalink / raw)
To: help-gnu-emacs
"alexduller@googlemail.com" <alexduller@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. It contains many stanzas initialising common modes that you
can use as examples.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding a symbol help mode
2008-06-01 13:38 Adding a symbol help mode alexduller
2008-06-01 14:04 ` John Paul Wallington
@ 2008-06-01 18:09 ` Eli Zaretskii
1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2008-06-01 18:09 UTC (permalink / raw)
To: help-gnu-emacs
> From: "alexduller@googlemail.com" <alexduller@googlemail.com>
> Date: Sun, 1 Jun 2008 06:38:45 -0700 (PDT)
>
> Regarding info files, how do I add a symbol help mode?
>
> I have the Tcl manual formatted as info files and have added entries
> to a dir file. When I use C-h S to lookup a symbol, it asks for a
> symbol help mode. However, tcl-mode is not there.
>
> I've scoured the emacs manual, the wiki and irc channel for an answer,
> but to no avail.
See the documentation of the function info-lookup-add-help.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Adding a symbol help mode
2008-06-01 14:04 ` John Paul Wallington
@ 2008-06-02 7:14 ` alexduller
0 siblings, 0 replies; 4+ messages in thread
From: alexduller @ 2008-06-02 7:14 UTC (permalink / raw)
To: help-gnu-emacs
On Jun 1, 3:04 pm, j...@pobox.com (John Paul Wallington) wrote:
> "alexdul...@googlemail.com" <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. It 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-<tab> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-06-02 7:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-01 13:38 Adding a symbol help mode alexduller
2008-06-01 14:04 ` John Paul Wallington
2008-06-02 7:14 ` alexduller
2008-06-01 18:09 ` Eli Zaretskii
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.