From: Eli Zaretskii <eliz@gnu.org>
To: Andreas Politz <politza@hochschule-trier.de>
Cc: emacs-devel@gnu.org
Subject: Re: Displaying scrollable images in a grid-layout
Date: Mon, 13 Apr 2015 17:57:12 +0300 [thread overview]
Message-ID: <83r3rocbzr.fsf@gnu.org> (raw)
In-Reply-To: <87pp785u5a.fsf@hochschule-trier.de>
> From: Andreas Politz <politza@hochschule-trier.de>
> 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.
next prev parent reply other threads:[~2015-04-13 14:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 8:06 Displaying scrollable images in a grid-layout Andreas Politz
2015-04-13 14:57 ` Eli Zaretskii [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r3rocbzr.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=politza@hochschule-trier.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).