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

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

Re: eldoc support with M-:


From: Thierry Volpiatto
Subject: Re: eldoc support with M-:
Date: Mon, 11 Jul 2011 07:27:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Thierry Volpiatto <address@hidden> writes:

> address@hidden writes:
>
>> From: Thierry Volpiatto <address@hidden>
>> 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 

Attachment: eldoc-eval.el
Description: application/emacs-lisp

Attachment: eldoc-eval.el.sig
Description: Binary data


reply via email to

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