help-gnu-emacs
[Top][All Lists]
Advanced

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

RE: Info index completion in Emacs 21


From: Drew Adams
Subject: RE: Info index completion in Emacs 21
Date: Fri, 24 Nov 2006 10:06:02 -0800

> (defun my-info-index ()
>   "Go to an index item in info with completion."
>   (interactive)
>   (Info-index "")
>   (let ((pattern "\\* +\\([^:]*\\):.")
>         completions)
>     (goto-char (point-min))
>     (while (re-search-forward pattern nil t)
>       (push (list (match-string 1)) completions))
>     (Info-index (completing-read "Index topic: " completions nil t))))

In a related vein, in Icicle (minor) mode, `i' in Info gives you both regexp
(e.g. substring) and prefix completion. It is also a multi-command, so you
can easily browse multiple matches, selectively or in any order. See
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Info_Enhancements.





reply via email to

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