From: David Engster <deng@randomsample.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Scrolling in buffers with inline images / point outside viewport
Date: Mon, 10 Jun 2013 17:53:52 +0200 [thread overview]
Message-ID: <878v2iq7vz.fsf@arcor.de> (raw)
In-Reply-To: 83ppvvlzga.fsf@gnu.org
Eli Zaretskii writes:
>> From: David Engster <deng@randomsample.de>
>> Date: Sun, 09 Jun 2013 21:00:48 +0200
>>
>> There's another problem with set-window-vscroll, which I did not mention
>> there: the further you go via vscroll, the slower it becomes until it's
>> pretty much unbearable. Don't even think of scrolling through large
>> buffers with this.
>
> I see no slowdown at all.
Well, it's been 5 years, maybe things have changed. I used to test it
this way: I opened my pretty long init file "~/.emacs" in a split frame
alongside the *scratch* buffer. In *scratch*, I evaluated this:
(with-selected-window (get-buffer-window ".emacs")
(setq times-to-vscroll nil)
(let (newval oldval)
(setq oldval (float-time (current-time)))
(dotimes (i 500)
(setq newval (float-time (current-time)))
(push (- newval oldval) times-to-vscroll)
(setq oldval newval)
(set-window-vscroll nil (+ (window-vscroll) 1))
(redisplay t))))
I remember that this started quite fast with times well under a second
per scroll, but then grew up to 2 seconds or more at the end.
However, when I try this now, this code simply does not work; as soon as
the cursor leaves the viewport, it somehow resets back to the original
position. I have no idea what's going on.
-David
next prev parent reply other threads:[~2013-06-10 15:53 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-09 16:56 Scrolling in buffers with inline images / point outside viewport Klaus-Dieter Bauer
2013-06-09 17:19 ` Eli Zaretskii
2013-06-09 19:12 ` David Engster
2013-06-09 19:00 ` David Engster
2013-06-09 21:57 ` Eli Zaretskii
2013-06-10 15:53 ` David Engster [this message]
2013-06-10 17:01 ` Eli Zaretskii
2013-06-11 19:40 ` David Engster
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878v2iq7vz.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).