all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Engster <deng@randomsample.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Scrolling in buffers with inline images / point outside viewport
Date: Sun, 09 Jun 2013 21:00:48 +0200	[thread overview]
Message-ID: <87zjuzqfbz.fsf@arcor.de> (raw)
In-Reply-To: CANtbJLGfRVWrr5NTBsDgVvQ_4C3zrfdtQa-Dk-XM-akv2SdJWA@mail.gmail.com

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




  parent reply	other threads:[~2013-06-09 19:00 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 [this message]
2013-06-09 21:57   ` Eli Zaretskii
2013-06-10 15:53     ` David Engster
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zjuzqfbz.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.