[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Displaying scrollable images in a grid-layout
From: |
Andreas Politz |
Subject: |
Re: Displaying scrollable images in a grid-layout |
Date: |
Tue, 14 Apr 2015 21:29:04 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Eli Zaretskii <address@hidden> 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.
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.
Would this be a feature supported by Emacs ?
>> (setq-local scroll-step 1)
>> (set-window-vscroll nil 10) => Scrolls, but:
>>
>> Redisplay performance (or something else) greatly suffers,[...]
>
> I don't see this performance hit. [...]
I am not able to reproduce it either just now...
> The other points I made in my previous message and today still hold:
> there are limits to what Emacs will currently let you do with
> window-vscroll, mainly due to 2 factors:
>
> . the basic desire embedded in redisplay to avoid showing partial
> lines, unless they are unavoidable
>
> . the automatic scrolling when point goes off the window
>
> Let me know if you need further help or have additional
> questions/issues about this.
Thank you.
-ap
- Re: Displaying scrollable images in a grid-layout, (continued)
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/14
- Re: Displaying scrollable images in a grid-layout, Yuri Khan, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Yuri Khan, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Yuri Khan, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Andreas Politz, 2015/04/15
- Re: Displaying scrollable images in a grid-layout, Stefan Monnier, 2015/04/16
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/14
- Re: Displaying scrollable images in a grid-layout,
Andreas Politz <=
- Message not available
- Re: Displaying scrollable images in a grid-layout, Eli Zaretskii, 2015/04/14