From: David Engster <deng@randomsample.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Smooth scrolling
Date: Thu, 08 Jul 2010 10:51:04 +0200 [thread overview]
Message-ID: <878w5me4qv.fsf@arcor.de> (raw)
In-Reply-To: 4C34D5B7.6010200@gmail.com
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
next prev parent reply other threads:[~2010-07-08 8:51 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-06 16:32 Smooth scrolling Marcelo de Moraes Serpa
2010-07-06 16:37 ` Juanma Barranquero
2010-07-06 16:42 ` Marcelo de Moraes Serpa
2010-07-06 16:42 ` Marcelo de Moraes Serpa
2010-07-06 16:45 ` Deniz Dogan
2010-07-06 16:47 ` Marcelo de Moraes Serpa
2010-07-06 17:16 ` Juanma Barranquero
2010-07-06 21:15 ` Marcelo de Moraes Serpa
2010-07-06 21:21 ` Deniz Dogan
2010-07-07 1:47 ` Jesse W. Wilson
2010-07-07 18:12 ` Marcelo de Moraes Serpa
2010-07-07 19:21 ` Deniz Dogan
2010-07-07 19:29 ` Jesse W. Wilson
2010-07-08 8:51 ` David Engster [this message]
2010-07-08 15:05 ` Marcelo de Moraes Serpa
[not found] ` <mailman.10.1278579640.25905.help-gnu-emacs@gnu.org>
2010-07-08 10:01 ` Andreas Politz
2010-07-07 19:40 ` Marcelo de Moraes Serpa
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=878w5me4qv.fsf@arcor.de \
--to=deng@randomsample.de \
--cc=help-gnu-emacs@gnu.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.