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: Mon, 10 Jun 2013 17:53:52 +0200 Message-ID: <878v2iq7vz.fsf@arcor.de> References: <87zjuzqfbz.fsf@arcor.de> <83ppvvlzga.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1370879665 21402 80.91.229.3 (10 Jun 2013 15:54:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Jun 2013 15:54:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 10 17:54:24 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 1Um4QK-00032s-0c for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2013 17:54:24 +0200 Original-Received: from localhost ([::1]:46655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um4QJ-0004bF-NQ for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jun 2013 11:54:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56493) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um4Q8-0004b8-Ub for help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 11:54:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Um4Q4-0004om-0O for help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 11:54:12 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:37972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Um4Q3-0004oa-Pz for help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 11:54:07 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Um4Q2-0002r9-RH for help-gnu-emacs@gnu.org; Mon, 10 Jun 2013 17:54:06 +0200 Original-Received: from dslc-082-083-063-111.pools.arcor-ip.net ([82.83.63.111]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 17:54:06 +0200 Original-Received: from deng by dslc-082-083-063-111.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 10 Jun 2013 17:54:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslc-082-083-063-111.pools.arcor-ip.net User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:EdYoUx8gn7qogoN1URcfH/WlCtc= 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:91445 Archived-At: Eli Zaretskii writes: >> From: David Engster >> 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