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

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

Re: elisp-index-search on current word


From: Xah
Subject: Re: elisp-index-search on current word
Date: Thu, 9 Oct 2008 19:36:07 -0700 (PDT)
User-agent: G2/1.0

On Oct 9, 7:18 pm, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:

> Ah, to get the conventional prompt:
>
> (defadvice elisp-index-search (before interactive-default activate)
>    "Provide the symbol at point as the default when reading TOPIC
> interactively."
>    (interactive (let ((symbol-at-point (thing-at-point 'symbol)))
>                  (list (read-string (if symbol-at-point
>                                         (format "Topic (%s): " 
> symbol-at-point)
>                                       (format "Topic: "))
>                                     nil nil symbol-at-point)))))

Thanks! Super.

  Xah
∑ http://xahlee.org/

reply via email to

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