unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* set-window-vscroll flaky?
@ 2003-02-24 14:54 D. Goel
  0 siblings, 0 replies; only message 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] only message in thread

only message in thread, other threads:[~2003-02-24 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-24 14:54 set-window-vscroll flaky? D. Goel

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).