« Return to Thread: eldoc support with M-:

Re: eldoc support with M-:

by Thierry Volpiatto-2 :: Rate this Message:

| View in Thread

Thierry Volpiatto <thierry.volpiatto@...> writes:

> rubikitch@... writes:
>
>> From: Thierry Volpiatto <thierry.volpiatto@...>
>> Subject: eldoc support with M-:
>> Date: Thu, 19 May 2011 10:49:03 +0200
>>
>> hi,
>>
>>> Just (require 'eldoc-extensions) and try it in M-:.
>>
>> Its filename is confusing.
>> eldoc-extension.el (singular) exists in EmacsWiki by AndyStewart.
> Ah! ok, didn't know this one.
> Find attached renamed file to eldoc-eval.el.
Here the last version of eldoc-eval.el.
It provide a new macro `with-eldoc-in-minibuffer' that allow to enable
eldoc support in any minibuffer code:

(with-eldoc-in-minibuffer (read-string "test eldoc: " "(let")))

It also follow arguments while you are writing, just like normal eldoc.
To see this, you need to set a visible face, the default one of eldoc is
most of the time invisible, do like this or use customize:

(when (require 'eldoc)
  (set-face-attribute 'eldoc-highlight-function-argument nil :underline "red"))


 
--
A+ Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997



_______________________________________________
gnu-emacs-sources mailing list
gnu-emacs-sources@...
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

eldoc-eval.el (4K) Download Attachment
eldoc-eval.el.sig (98 bytes) Download Attachment

 « Return to Thread: eldoc support with M-: