From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: D. Goel Newsgroups: gmane.emacs.help Subject: set-window-vscroll flaky? Date: 24 Feb 2003 09:54:23 -0500 Organization: Posted via Supernews, http://www.supernews.com Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87el5xraow.fsf@computer.localdomain> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046098886 29113 80.91.224.249 (24 Feb 2003 15:01:26 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 24 Feb 2003 15:01:26 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18nK6c-0007Z0-00 for ; Mon, 24 Feb 2003 16:01:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nK5s-0007ht-06 for gnu-help-gnu-emacs@m.gmane.org; Mon, 24 Feb 2003 10:00:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!sn-xit-03!sn-xit-06!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: #5@=vrmx5t3mZaPY8(mR.n+V#:%4NW7j5A&^}@lGp2rK; CQ4%iH1v'gh/^A)w5*6c&R2(P' 4+seYDq8OK'LPI/C(C^A*w|f*t+8,'T8b#_0~h3!A7GoVroE[cr0Fb'A0%SdU|Lk@gBV&1vA User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 54 Original-Xref: shelby.stanford.edu gnu.emacs.help:110565 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7067 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7067 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/ --