From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcelo de Moraes Serpa Newsgroups: gmane.emacs.help Subject: Re: Smooth scrolling Date: Thu, 8 Jul 2010 10:05:03 -0500 Message-ID: References: <4C33DC94.5010002@gmail.com> <4C34D5B7.6010200@gmail.com> <878w5me4qv.fsf@arcor.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1278601556 26765 80.91.229.12 (8 Jul 2010 15:05:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Jul 2010 15:05:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 08 17:05:54 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWsfh-0008P2-4Q for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 17:05:53 +0200 Original-Received: from localhost ([127.0.0.1]:47766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWsfg-0001BM-Jv for geh-help-gnu-emacs@m.gmane.org; Thu, 08 Jul 2010 11:05:52 -0400 Original-Received: from [140.186.70.92] (port=45177 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWsfB-0001AN-0b for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 11:05:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWsf9-0004hn-EW for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 11:05:20 -0400 Original-Received: from mail-pz0-f41.google.com ([209.85.210.41]:57142) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWsf9-0004hY-5j for help-gnu-emacs@gnu.org; Thu, 08 Jul 2010 11:05:19 -0400 Original-Received: by pzk33 with SMTP id 33so449996pzk.0 for ; Thu, 08 Jul 2010 08:05:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=5nnRT9dJrloKVKPjoGJfwNTZVu3t8WYSxfk0uLAEzxA=; b=QmP0TgfX8ihwII+AKehaUqyyiWCXLvMermd6/o2gYr/eH+PWEZgJBfTolNQN7Azpbf 4AkQIgmCAdUrNot9ebCSSyICoILvVvLaDfIADbCBMKKJWM5dx4ItNNClNFJJcXLtbnzQ XJM9yB1nEa3o8klz4a1ulz4JZCx0kWkaF3HS8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=K9ruYRBdY3F5vvOSxxOO6CGT/y4R92R1CTi9yd2C9rfns3lns1eyQVL5mZWqS/uu7R nU+ub7Zu6pPims7C8QmZ4Vq+qcdIO6IsCxl37Cr31HJwZJgLX3wYYdOBZkWlSLAgGl7I 69wU4RCLgbjQYkYrSksDBSm9/rWB+XJajCXyo= Original-Received: by 10.142.169.6 with SMTP id r6mr8533526wfe.346.1278601504089; Thu, 08 Jul 2010 08:05:04 -0700 (PDT) Original-Received: by 10.143.156.2 with HTTP; Thu, 8 Jul 2010 08:05:03 -0700 (PDT) In-Reply-To: <878w5me4qv.fsf@arcor.de> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:74138 Archived-At: http://zwell.net/content/emacs.html This is the nearest to what I'd like, seems to work, although has some small glitches. Marcelo. On Thu, Jul 8, 2010 at 3:51 AM, David Engster wrote: > Jesse W. Wilson writes: >> Perhaps the following could be of use? >> http://www.gnu.org/s/emacs/manual/html_node/elisp/Vertical-Scrolling.html >> >> If I type this in a buffer and eval with c-x c-e, >> (set-window-vscroll (selected-window) 0.3) >> >> It seems to scroll a fraction of a line downward. >> >> Of course I haven't a clue how it could be incorporated into bindings >> for the scroll wheel. > > Yes, Emacs can do "fractional" (read: pixel-wise) scrolling with the > set-window-vscroll command you mentioned above. For example, > picture-mode can smooth-scroll an image just fine. However, there are > two caveats: it is slow, and the point must remain visible during > scrolling. > > I've fiddled with this stuff a while ago to implement a smoother > scrolling for buffers with images in them. See > > http://www.randomsample.de/dru5/node/25 > http://www.randomsample.de/dru5/node/26 > > for how far I've come. Those functions use set-window-vscroll to scroll > the buffer and move point in a way so that it always remains > visible. However, you'll notice that the higher the vscroll value of the > current window, the slower scrolling becomes, so it's of limited > value. Also, it doesn't work well with the other point-moving commands, > so it's currently only useful for read-only buffers. > > Regards, > David > > >