From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Continuous image scrolling (was: What improvements would be truly useful?) Date: Mon, 02 Apr 2018 23:40:25 +0300 Organization: LINKOV.NET Message-ID: <87efjxibor.fsf_-_@mail.linkov.net> References: <87inaiss6l.fsf@web.de> <6FCF6ACA-4F29-4B6B-BE9D-D7130C6E9495@gnu.org> <87fu5moe4c.fsf@web.de> <877eqyocro.fsf@web.de> <83zi3uz4nb.fsf@gnu.org> <0b1dd3fa-e0b0-ed20-a256-dd92d1c1826f@dancol.org> <8bc3c4c7-dfc7-987a-95e7-bd309e2326c6@cs.ucla.edu> <03118DC0-39DA-4AB5-980E-A33809B9A5EE@raeburn.org> <86578165-1b41-e75c-7180-84d8edefc44b@grinta.net> <87d10i9qbx.fsf@mail.linkov.net> <87tvtucch8.fsf@telefonica.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1522701962 6748 195.159.176.226 (2 Apr 2018 20:46:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 2 Apr 2018 20:46:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 02 22:45:58 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f36Kz-0001eA-2w for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2018 22:45:57 +0200 Original-Received: from localhost ([::1]:34108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f36N2-0001ua-T0 for ged-emacs-devel@m.gmane.org; Mon, 02 Apr 2018 16:48:04 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f36MO-0001uM-5d for emacs-devel@gnu.org; Mon, 02 Apr 2018 16:47:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f36MK-0001T7-VV for emacs-devel@gnu.org; Mon, 02 Apr 2018 16:47:24 -0400 Original-Received: from sub3.mail.dreamhost.com ([69.163.253.7]:54247 helo=homiemail-a11.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f36MK-0001S7-Po for emacs-devel@gnu.org; Mon, 02 Apr 2018 16:47:20 -0400 Original-Received: from homiemail-a11.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTP id F329D314C06D; Mon, 2 Apr 2018 13:47:18 -0700 (PDT) Original-Received: from localhost.linkov.net (m91-129-105-236.cust.tele2.ee [91.129.105.236]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPSA id 20383314C069; Mon, 2 Apr 2018 13:47:17 -0700 (PDT) In-Reply-To: <87tvtucch8.fsf@telefonica.net> (=?iso-8859-1?Q?=22=D3scar?= Fuentes"'s message of "Tue, 06 Mar 2018 00:46:27 +0100") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 69.163.253.7 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:224260 Archived-At: >>> What would improve my user experience would be improvements to the >>> display engine that will allow a better document viewing capabilities >>> in something like pdf-tools (like continuous scrolling). >> >> Continuous scrolling can be easily implemented with a simple hack >> to insert adjacent images for the previous/next pdf pages in >> the same DocView buffer. > > I've looked into implementing this feature and it is not as simple as it > seems. The hack you mention is precisely that: a hack, and a very cranky > one. AFAIK there is no way of implementing continous scrolling with > adjacent images if you care at all about robustness and user experience. > And the fact that people is asking for this feature for years and, to > this day, nobody implemented it, seems to confirm my impressions. I just realized we already have continuous image scrolling mode: 1. visiting a PDF file generates PNG images in the temporary directory 2. C-x d /tmp/docview1000/... RET 3. M-x iimage-mode RET 4. enjoy continuous image scrolling mode directly in dired (the same logic could be later incorporated into doc-view.el) I tried this with a directory containing ca 1000 pages/images and there is no performance degradation while continuously scrolling all these 1000 images.