From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: D. Goel Newsgroups: gmane.emacs.bugs Subject: set-window-vscroll flaky? Date: 25 Feb 2003 12:11:01 -0500 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87isv8s2u2.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 1046193175 20035 80.91.224.249 (25 Feb 2003 17:12:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 25 Feb 2003 17:12:55 +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 18nidR-0005Cs-00 for ; Tue, 25 Feb 2003 18:12:53 +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 18nicN-0006ar-00 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 25 Feb 2003 12:11:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18nicB-0006Yn-00 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2003 12:11:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18nic9-0006Xy-00 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2003 12:11:34 -0500 Original-Received: from 24-197-159-102.charterga.net ([24.197.159.102] helo=computer) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18nic9-0006Op-00 for bug-gnu-emacs@gnu.org; Tue, 25 Feb 2003 12:11:33 -0500 Original-Received: from deego by computer with local (Exim 3.36 #1 (Debian)) id 18nibe-00013J-00 for ; Tue, 25 Feb 2003 12:11:02 -0500 Original-To: bug-gnu-emacs 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 Original-Lines: 57 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4517 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4517 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/ --