[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bind the value of a function to a variable (was: window-height function
From: |
Rodolfo Medina |
Subject: |
Bind the value of a function to a variable (was: window-height function lies!) |
Date: |
Wed, 01 Oct 2008 23:21:47 +0100 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/22.0.50 (gnu/linux) |
Nikolaj Schumacher <me@nschum.de> writes:
> You might want to use:
>
> (1+ (count-lines (window-start) (window-end)))
Thanks.
I want to try to bind this to a variable, but don't know the right syntax. I
want to do something like:
(setq scroll-default-lines (1+ (count-lines (window-start) (window-end))))
, but get error. How can I do that the right way?
Thanks
Rodolfo