* set-window-vscroll flaky?
@ 2003-02-24 14:54 D. Goel
0 siblings, 0 replies; 2+ messages in thread
From: D. Goel @ 2003-02-24 14:54 UTC (permalink / raw)
hello
I can get set-window-vscroll to work from M-: or from inside functions
containing that one single command.
Example:
(defun vel-scroll-up-fractional (acc)
(set-window-vscroll nil acc))
works just fine when acc is 0.5
However,
try
(defun vel-scroll-up (amount acc)
(scroll-up amount)
(set-window-scroll nil acc))
where amount is 0 and acc is 0.5. (the first one is a dummy line
supposed to do nothing here..)
And the second line seems to have no effect at all.
IOW, I cannot get set-window-scroll to do anything except
interactively in a function all by itself. Any hints on what i am
doing wrong? Does it work for anyone?
====================================================
And even when it works in the "function all by itself", it does not
work when that function is called by another function:
(defun vel-scroll-up (amount acc)
(scroll-up amount)
(vel-scroll-up-fractional acc))
and then eval (vel-scroll-up 0 0.5) but nothing happens -- the
vel-scroll-up-fractional in the function doesn't seem to do anyting :(
even though M-: (vel-scroll-up-fractional 0.5) works.
(tried using emacs cvs and emacs21.2) in X where (frame-char-height)
was 14.
thanks
DG http://gnufans.net/
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* set-window-vscroll flaky?
@ 2003-02-25 17:11 D. Goel
0 siblings, 0 replies; 2+ messages in thread
From: D. Goel @ 2003-02-25 17:11 UTC (permalink / raw)
hello
I can get set-window-vscroll to work from M-: or from inside functions
containing that one single command.
Example:
(defun vel-scroll-up-fractional (partial)
(set-window-vscroll nil partial))
works just fine when partial is 0.5
However,
try
(defun vel-scroll-up (amount partial)
(scroll-up amount)
(set-window-scroll nil partial))
where amount is 0 and acc is 0.5. (the first one is a dummy line
supposed to do nothing here..)
And the problem is that second line seems to have no effect at all.
In other words, I cannot get set-window-scroll to do anything except
interactively in a function all by itself. Any hints on what i am
doing wrong? Does it work for anyone?
====================================================
And even when it works in the "function all by itself", it does not
work when that function is called by another function:
(defun vel-scroll-up (amount acc)
(scroll-up amount)
(vel-scroll-up-fractional acc))
and then eval (vel-scroll-up 0 0.5) but nothing happens -- the
vel-scroll-up-fractional in the function doesn't seem to do anyting :(
even though M-: (vel-scroll-up-fractional 0.5) works.
(tried using emacs cvs and emacs21.2) in X where (frame-char-height)
was 14.
thanks
DG http://gnufans.net/
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-02-25 17:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-25 17:11 set-window-vscroll flaky? D. Goel
-- strict thread matches above, loose matches on Subject: below --
2003-02-24 14:54 D. Goel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.