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: Mon, 13 Apr 2015 17:57:12 +0300 Message-ID: <83r3rocbzr.fsf@gnu.org> References: <87pp785u5a.fsf@hochschule-trier.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1428937059 25959 80.91.229.3 (13 Apr 2015 14:57:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 14:57:39 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Politz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 13 16:57:30 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 1Yhfnl-0005MF-D6 for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 16:57:29 +0200 Original-Received: from localhost ([::1]:52257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yhfnk-00023s-Te for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 10:57:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhfnT-0001k2-9i for emacs-devel@gnu.org; Mon, 13 Apr 2015 10:57:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhfnO-0001c3-3g for emacs-devel@gnu.org; Mon, 13 Apr 2015 10:57:11 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:51887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhfnN-0001bV-KW for emacs-devel@gnu.org; Mon, 13 Apr 2015 10:57:06 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NMR006002N7GQ00@mtaout26.012.net.il> for emacs-devel@gnu.org; Mon, 13 Apr 2015 17:58:26 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NMR003B72XEV140@mtaout26.012.net.il>; Mon, 13 Apr 2015 17:58:26 +0300 (IDT) In-reply-to: <87pp785u5a.fsf@hochschule-trier.de> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 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:185369 Archived-At: > From: Andreas Politz > Date: Mon, 13 Apr 2015 10:06:57 +0200 > > I'm trying to display a bunch of images in a grid layout, in a > way that let's me scroll the window over these images, i.e. with > some displayed only partially at the bottom and/or top. > > Though I couldn't figure out a way of doing it properly, so I'm > asking here. The same problems I'm running into can be observed > with the image-dired.el package. > > (with-current-buffer (find-file-noselect > (expand-file-name > "images" > data-directory)) > (dired-unmark-all-marks) > (dired-mark-directories nil) > (dired-toggle-marks) > (image-dired-display-thumbs) > (setq-local scroll-conservatively 0) > (setq-local scroll-step 0) > (setq-local scroll-up-aggressively nil)) > > This should create a *image-dired* buffer. But trying to scroll > it seems to have no effect: > > (set-window-vscroll nil (+ (window-vscroll) 1)) I cannot try your recipe, because image-dired-display-thumbs requires Imagemagick to be installed, which I don't have. If you can simulate the same with just a bunch of image files, please show such a recipe, and I will certainly try looking into it. That being said, I think you are missing the PIXELWISE-P argument of both window-vscroll and set-window-vscroll. Aren't you? If not, please elaborate on what kind of partial scrolling did you want to see. > (setq-local scroll-step 1) > (set-window-vscroll nil (+ (window-vscroll) 1)) > > But it slows down redisplay considerably, to a point where it > becomes unusable. And there's one more thing that confuses me in this statement: partial pixel-wise scrolling will always be slow, so I'm not sure what exactly you expected to happen. Probably again it goes back to the fact that I'm not sure what you were trying to accomplish, or why.