help-texinfo
[Top][All Lists]
Advanced

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

Re: [help-texinfo] Index entries for "@command" & Co.


From: Tim Landscheidt
Subject: Re: [help-texinfo] Index entries for "@command" & Co.
Date: Fri, 23 Mar 2012 12:14:58 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

I wrote:

> [...]
>   Well, I usually use Emacs to view info files, so I could
> always advice Info-index.

Or just use the included info-lookup-symbol (C-h S).  It on-
ly works in texinfo files, not in the *info* buffer itself,
though, and one has to tweak the default pattern a bit:

| (info-lookup-add-help
|  :mode 'texinfo-mode
|  :regexp "@\\([a-zA-Z]+\\|[^a-zA-Z]\\)"
|  :doc-spec '(("(texinfo)Command and Variable Index"
|               (lambda (item)
|                 (if (string-match "address@hidden([a-zA-Z]+\\|[^a-zA-Z]\\)\\( 
.*\\)?$" item)
|                     (match-string 1 item)))
|               "`" "[' ]")))

But it's much friendlier than TeX :-).

Tim




reply via email to

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