help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scrolling in buffers with inline images / point outside viewport


From: David Engster
Subject: Re: Scrolling in buffers with inline images / point outside viewport
Date: Sun, 09 Jun 2013 21:00:48 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Klaus-Dieter Bauer writes:
> It can partly be solved, as demonstrated in [1], by doing smart positioning
> of point. However, I can't think of a solution how to scroll when there are
> images that are larger than the buffer height if after every scroll
> operation point must be visible. The solution from [1] for instances gets
> stuck at large images, unless one scrolls continously in which case
> presumable Emacs do a redisplay during the scrolling, that would force the
> viewport into a position that makes point visible.

Yes, I'm the guy who did this stuff. It's tricky, and I agree it's never
been working as well as it should be. It's been a while since I worked
on this, but I think the main problem in the end was that you'd need to
know the height of lines *before* they are rendered, which I think is
impossible in Emacs.

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.

-David




reply via email to

[Prev in Thread] Current Thread [Next in Thread]