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

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

Re: How to know the value of a non interactive function?


From: Tassilo Horn
Subject: Re: How to know the value of a non interactive function?
Date: Wed, 01 Oct 2008 14:13:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Rodolfo Medina <rodolfo.medina@gmail.com> writes:

Hi Rodolfo,

> Pardon the basicness of my question: I wish to know what value is
> returned by the `window-height' function in my buffer: how can I
> achieve that?

With `M-:' you can evaluate arbitrary lisp code which has access to the
current environment (buffer with point and mark, window, etc.) where you
hit `M-:'.  So in your case

  M-: (window-height)

should do the trick.  (BTW: With M-TAB you have autocompletion for any
known lisp symbol there.)

Bye,
Tassilo
-- 
Richard Stallman gets 9 bits to the byte.





reply via email to

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