From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Politz Newsgroups: gmane.emacs.devel Subject: Displaying scrollable images in a grid-layout Date: Mon, 13 Apr 2015 10:06:57 +0200 Message-ID: <87pp785u5a.fsf@hochschule-trier.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428914149 24694 80.91.229.3 (13 Apr 2015 08:35:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Apr 2015 08:35:49 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 13 10:35:34 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 1YhZq9-0001oU-BQ for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 10:35:33 +0200 Original-Received: from localhost ([::1]:48270 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhZq8-00014X-HT for ged-emacs-devel@m.gmane.org; Mon, 13 Apr 2015 04:35:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhZpq-00014M-SM for emacs-devel@gnu.org; Mon, 13 Apr 2015 04:35:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhZpo-0004Bl-6C for emacs-devel@gnu.org; Mon, 13 Apr 2015 04:35:14 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:57005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhZpn-0004BQ-Vf for emacs-devel@gnu.org; Mon, 13 Apr 2015 04:35:12 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YhZpf-0001WZ-P9 for emacs-devel@gnu.org; Mon, 13 Apr 2015 10:35:03 +0200 Original-Received: from dslb-088-067-095-051.088.067.pools.vodafone-ip.de ([88.67.95.51]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2015 10:35:03 +0200 Original-Received: from politza by dslb-088-067-095-051.088.067.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 13 Apr 2015 10:35:03 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-088-067-095-051.088.067.pools.vodafone-ip.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:VV7O1n4QAgnm3D/t9IDqiJjjWWI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:185368 Archived-At: Hi, 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)) Setting either scroll-step or scroll-conservatively to 1 or scroll-up-aggressively to 0.0 allows for scrolling to happen (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. Is there a way of doing this ? -ap