From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Displaying scrollable images in a grid-layout Date: Tue, 14 Apr 2015 17:51:15 +0300 Message-ID: <83twwibw64.fsf@gnu.org> References: <87pp785u5a.fsf@hochschule-trier.de> <83r3rocbzr.fsf@gnu.org> <87bnirzur7.fsf@hochschule-trier.de> <83egnndb93.fsf@gnu.org> <873842vnwp.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429023121 17754 80.91.229.3 (14 Apr 2015 14:52:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Apr 2015 14:52:01 +0000 (UTC) Cc: politza@hochschule-trier.de, emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 14 16:51:44 2015 Return-path: Envelope-to: ged-emacs-devel@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 1Yi2Bk-00021k-90 for ged-emacs-devel@m.gmane.org; Tue, 14 Apr 2015 16:51:44 +0200 Original-Received: from localhost ([::1]:56255 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi2Bj-0003vM-N8 for ged-emacs-devel@m.gmane.org; Tue, 14 Apr 2015 10:51:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi2BI-0003Q2-3H for emacs-devel@gnu.org; Tue, 14 Apr 2015 10:51:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yi2B6-0007NF-Ow for emacs-devel@gnu.org; Tue, 14 Apr 2015 10:51:11 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:56308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yi2B6-0007N0-Gq; Tue, 14 Apr 2015 10:51:04 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NMS00H00X6VDN00@a-mtaout22.012.net.il>; Tue, 14 Apr 2015 17:51:03 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMS00HO2X92AB30@a-mtaout22.012.net.il>; Tue, 14 Apr 2015 17:51:03 +0300 (IDT) In-reply-to: <873842vnwp.fsf@gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185406 Archived-At: > From: Tassilo Horn > Cc: Andreas Politz , emacs-devel@gnu.org > Date: Tue, 14 Apr 2015 15:29:26 +0200 > > Eli Zaretskii writes: > > >> doc-view let's you scroll the page, i.e. the image is only partially > >> visible. I want the same behaviour for more than one image in the > >> buffer. Possible display state with 2 images: > > > > If each image is taller than the window, a simple down-arrow should do > > what you want. (Isn't that what you see in doc-view?) > > In doc-view, there is always exactly one image in the buffer. As soon > as you've scrolled enough to its top/bottom, it'll be replaced with the > image of the next/previous page. > > What Andreas wants to accomplish is to have all images of all pages of a > document in the current buffer at the same time. I understand, but the number of images is not the issue here. The issue is the height of an individual image (or, if there are several images on a single line, the tallest image on that line) in comparison to the window height. If the image is taller, Emacs scrolls pixel-wise by default, because otherwise the user stands no chance of viewing all parts of the image. But if the window is taller than the image, Emacs tries to show the image in its entirety, and scrolling pixel-wise in this situation causes partial visibility, which goes against this policy.