* Emacs Telling You the Kind of the Variable Under the Cursor?
@ 2009-05-27 13:03 Lorenzo Isella
0 siblings, 0 replies; 4+ messages in thread
From: Lorenzo Isella @ 2009-05-27 13:03 UTC (permalink / raw)
To: help-gnu-emacs
Dear All,
The email title almost says it all.
I read in a slashdot post that you can configure Emacs so that it will
tell you/display somewhere (there were no details in that post) the type
of the variable under the cursor.
This sounds handy, but I have no idea how to activate this feature
(given but not granted that it exists really).
Any hints?
Cheers
Lorenzo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs Telling You the Kind of the Variable Under the Cursor?
[not found] <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>
@ 2009-05-27 13:24 ` B. T. Raven
2009-05-27 13:38 ` Richard Riley
2009-05-27 13:57 ` Anselm Helbig
2 siblings, 0 replies; 4+ messages in thread
From: B. T. Raven @ 2009-05-27 13:24 UTC (permalink / raw)
To: help-gnu-emacs
Lorenzo Isella wrote:
> Dear All,
> The email title almost says it all.
> I read in a slashdot post that you can configure Emacs so that it will
> tell you/display somewhere (there were no details in that post) the type
> of the variable under the cursor.
> This sounds handy, but I have no idea how to activate this feature
> (given but not granted that it exists really).
> Any hints?
> Cheers
>
> Lorenzo
>
>
If you have access to an emacs installation you could evaluate the
following forms in *scratch*:
(setq p 1.1)
(type-of p)
The second yields "float" in the minibuffer. So the capability is there.
It's just a matter doing some lisp progamming.
Ed
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs Telling You the Kind of the Variable Under the Cursor?
[not found] <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>
2009-05-27 13:24 ` Emacs Telling You the Kind of the Variable Under the Cursor? B. T. Raven
@ 2009-05-27 13:38 ` Richard Riley
2009-05-27 13:57 ` Anselm Helbig
2 siblings, 0 replies; 4+ messages in thread
From: Richard Riley @ 2009-05-27 13:38 UTC (permalink / raw)
To: help-gnu-emacs
Lorenzo Isella <lorenzo.isella@gmail.com> writes:
> Dear All,
> The email title almost says it all.
> I read in a slashdot post that you can configure Emacs so that it will
> tell you/display somewhere (there were no details in that post) the type
> of the variable under the cursor.
> This sounds handy, but I have no idea how to activate this feature
> (given but not granted that it exists really).
> Any hints?
> Cheers
>
> Lorenzo
In which language? I assume not eLisp?
You probably need to look into using the much improved CEDET package.
Here is a good start:
http://cedet.sourceforge.net/
http://xtalk.msk.su/~ott/en/writings/emacs-devenv/EmacsCedet.html
You might consider ECB too which also has a major new release
http://ecb.sf.net/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Emacs Telling You the Kind of the Variable Under the Cursor?
[not found] <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>
2009-05-27 13:24 ` Emacs Telling You the Kind of the Variable Under the Cursor? B. T. Raven
2009-05-27 13:38 ` Richard Riley
@ 2009-05-27 13:57 ` Anselm Helbig
2 siblings, 0 replies; 4+ messages in thread
From: Anselm Helbig @ 2009-05-27 13:57 UTC (permalink / raw)
To: help-gnu-emacs
Hi!
> The email title almost says it all.
> I read in a slashdot post that you can configure Emacs so that it will
> tell you/display somewhere (there were no details in that post) the type
> of the variable under the cursor.
> This sounds handy, but I have no idea how to activate this feature
> (given but not granted that it exists really).
> Any hints?
I think you're looking for eldoc-mode. I've got this in my .emacs:
(mapc (lambda (mode-hook)
(add-hook mode-hook 'turn-on-eldoc-mode))
'(emacs-lisp-mode-hook lisp-interaction-mode-hook ielm-mode-hook))
In principle this is not limited to elisp, you can implement this
functionality for any language/major-mode, I did a toy implementation
for PHP once.
HTH,
Anselm
--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-05-27 13:57 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.7908.1243429533.31690.help-gnu-emacs@gnu.org>
2009-05-27 13:24 ` Emacs Telling You the Kind of the Variable Under the Cursor? B. T. Raven
2009-05-27 13:38 ` Richard Riley
2009-05-27 13:57 ` Anselm Helbig
2009-05-27 13:03 Lorenzo Isella
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).