all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Displaying scrollable images in a grid-layout
@ 2015-04-13  8:06 Andreas Politz
  2015-04-13 14:57 ` Eli Zaretskii
  0 siblings, 1 reply; 23+ messages in thread
From: Andreas Politz @ 2015-04-13  8:06 UTC (permalink / raw)
  To: emacs-devel


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




^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-04-15 19:31 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13  8:06 Displaying scrollable images in a grid-layout Andreas Politz
2015-04-13 14:57 ` Eli Zaretskii
2015-04-13 19:35   ` Andreas Politz
2015-04-13 20:27     ` Eli Zaretskii
2015-04-14 13:29       ` Tassilo Horn
2015-04-14 14:11         ` Stefan Monnier
2015-04-14 14:43           ` Tassilo Horn
2015-04-14 20:04             ` Stefan Monnier
2015-04-14 22:15               ` Rasmus
2015-04-14 14:51         ` Eli Zaretskii
2015-04-14 19:24           ` Tassilo Horn
2015-04-15  2:37             ` Eli Zaretskii
2015-04-15  4:17               ` Yuri Khan
2015-04-15 16:05                 ` Eli Zaretskii
2015-04-15 16:35                   ` Yuri Khan
2015-04-15 16:47                     ` Eli Zaretskii
2015-04-15 17:02                       ` Yuri Khan
2015-04-15 17:33                         ` Eli Zaretskii
2015-04-15 18:26                           ` Andreas Politz
2015-04-15 19:31                           ` Stefan Monnier
2015-04-14 14:56       ` Eli Zaretskii
2015-04-14 19:29         ` Andreas Politz
     [not found]         ` <8738424igv.fsf@hochschule-trier.de>
2015-04-15  2:41           ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.