From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Engster Newsgroups: gmane.emacs.help Subject: Re: Scrolling in buffers with inline images / point outside viewport Date: Sun, 09 Jun 2013 21:00:48 +0200 Message-ID: <87zjuzqfbz.fsf@arcor.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370804480 6826 80.91.229.3 (9 Jun 2013 19:01:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2013 19:01:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 09 21:01:20 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ulkre-0006JF-NQ for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 21:01:18 +0200 Original-Received: from localhost ([::1]:52685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ulkre-0006FC-Az for geh-help-gnu-emacs@m.gmane.org; Sun, 09 Jun 2013 15:01:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlkrS-0006Ev-O9 for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 15:01:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UlkrR-0004YW-T9 for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 15:01:06 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:53354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UlkrR-0004YK-Mr for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 15:01:05 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UlkrQ-00069z-9A for help-gnu-emacs@gnu.org; Sun, 09 Jun 2013 21:01:04 +0200 Original-Received: from dslc-082-083-055-245.pools.arcor-ip.net ([82.83.55.245]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 21:01:04 +0200 Original-Received: from deng by dslc-082-083-055-245.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Jun 2013 21:01:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 21 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslc-082-083-055-245.pools.arcor-ip.net User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:2xAov9TMJwObUgfgg+umPq/VYSg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91413 Archived-At: 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