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: Wed, 15 Apr 2015 05:41:54 +0300 Message-ID: <83zj6a9kp9.fsf@gnu.org> References: <87pp785u5a.fsf@hochschule-trier.de> <83r3rocbzr.fsf@gnu.org> <87bnirzur7.fsf@hochschule-trier.de> <83egnndb93.fsf@gnu.org> <83sic2bvx8.fsf@gnu.org> <8738424igv.fsf@hochschule-trier.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1429065727 7895 80.91.229.3 (15 Apr 2015 02:42:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 02:42:07 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Politz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 15 04:41:59 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 1YiDH4-0001RV-CW for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 04:41:58 +0200 Original-Received: from localhost ([::1]:58555 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiDH3-00059W-Fq for ged-emacs-devel@m.gmane.org; Tue, 14 Apr 2015 22:41:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiDGs-00059R-Vj for emacs-devel@gnu.org; Tue, 14 Apr 2015 22:41:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiDGo-00029n-0O for emacs-devel@gnu.org; Tue, 14 Apr 2015 22:41:46 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:51998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiDGn-00029h-Or for emacs-devel@gnu.org; Tue, 14 Apr 2015 22:41:41 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NMT00500TY2B200@a-mtaout20.012.net.il> for emacs-devel@gnu.org; Wed, 15 Apr 2015 05:41:41 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMT005C1U5G9130@a-mtaout20.012.net.il>; Wed, 15 Apr 2015 05:41:41 +0300 (IDT) In-reply-to: <8738424igv.fsf@hochschule-trier.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:185436 Archived-At: > From: Andreas Politz > Date: Tue, 14 Apr 2015 21:29:04 +0200 > > Eli Zaretskii writes: > > >> Try this: > >> > >> (defun show-data-dir-images (&optional ncolumns) > >> [...] > > > After running this function, this works for me: > > > > (set-window-vscroll nil N t) > > > > as long as (a) point is not on the first screen line shown in the > > window, and (b) N is no more than 24, which AFAICS is the pixel size > > of the small images created by the above function. > > Yes but the whole point is to display only half of an image at the top. Like I said: it works for me under the conditions described above. > This recipe is not ideal. In the real application I would have 2 images > (pages of a PDF) side by side, filling e.g 3/4 of the windows vertical > space. Below these images are another 2 which are only 1/4-way visible. > Now I want to scroll these 4 images up by let's say the equivalent of > next-screen-context-lines in pixels. Can you explain why such a partial scroll is a good idea? We can show the entire line, and yet you want us to show only part of it? > Would this be a feature supported by Emacs ? Like I said, it goes against the current redisplay strategy to show full lines whenever possible. So it would be possible to support that under some option, but it would need a lot of non-trivial changes.