all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: D. Goel <deego@gnufans.org>
Subject: set-window-vscroll flaky?
Date: 25 Feb 2003 12:11:01 -0500	[thread overview]
Message-ID: <87isv8s2u2.fsf@computer.localdomain> (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/
--

             reply	other threads:[~2003-02-25 17:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-25 17:11 D. Goel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-02-24 14:54 set-window-vscroll flaky? D. Goel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87isv8s2u2.fsf@computer.localdomain \
    --to=deego@gnufans.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.