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

only message in thread, other threads:[~2003-02-25 17:11 UTC | newest]

Thread overview: (only message) (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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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