[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Info index completion in Emacs 21
From: |
address@hidden |
Subject: |
Re: Info index completion in Emacs 21 |
Date: |
26 Nov 2006 02:51:14 -0800 |
User-agent: |
G2/1.0 |
Drew Adams írta:
> > (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.
Isn't it true only for Emacs 22? I have Emacs 21 and I use Icicles, but
there `i' doesn't offer any completion, that's why I had to wrote the
above snippet.
Am I missing something?