From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.bugs,gmane.emacs.xemacs.beta Subject: Re: [Bug: 21.4.19] smooth vscroll-{up,down} Date: Sat, 16 Jun 2007 15:03:52 +0200 Organization: Organization?!? Message-ID: <85ejkcnj9j.fsf@lola.goethe.zz> References: <15063121.355331181741569073.JavaMail.www@wwinf1617> <87vedqcr8t.fsf@uwakimon.sk.tsukuba.ac.jp> <1181987357.6646.6.camel@localhost> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1181999719 17929 80.91.229.12 (16 Jun 2007 13:15:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Jun 2007 13:15:19 +0000 (UTC) Cc: xemacs-beta@xemacs.org To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 16 15:15:17 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzY7W-0006sr-Nw for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 15:15:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzY7W-0001Vy-75 for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Jun 2007 09:15:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HzY7U-0001Vf-1c for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 09:15:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HzY7S-0001To-I0 for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 09:15:11 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzY7S-0001Ti-66 for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 09:15:10 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HzY7R-0006Qi-KW for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 09:15:09 -0400 Original-Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HzY7K-0005uU-Su for bug-gnu-emacs@gnu.org; Sat, 16 Jun 2007 15:15:02 +0200 Original-Received: from dslb-084-061-025-018.pools.arcor-ip.net ([84.61.25.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jun 2007 15:15:02 +0200 Original-Received: from dak by dslb-084-061-025-018.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 16 Jun 2007 15:15:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-061-025-018.pools.arcor-ip.net X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:ocUzj3SZTtYIf1P2hjimP6gSGLI= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15912 gmane.emacs.xemacs.beta:25027 Archived-At: Jérôme Bouat writes: > But emacs can move smoothly the window, > it is simply not mapped in 'next-line' function. > For the expected result, make emacs evaluate: > (dotimes (i 10) (set-window-vscroll nil (* i 0.1)) (sit-for 0.05)) It must be noted that while this Emacs (not XEmacs) code somewhat works, it is not integrated with the display engine in a manner that will cause sane and smooth recentering and cursor movement behavior. Also, true smooth scrolling works by whole pixel amounts, not "line fractions", and the scrolling happens at vertical retrace time for best effect. The complex display engine of Emacs (can't vouch for XEmacs) is not all too well suited for this sort of pixel-based action. If it were, scrollbars would behave "more naturally" already. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum