[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Continuous image scrolling

From: Tak Kunihiro
Subject: Re: Continuous image scrolling
Date: Thu, 05 Apr 2018 12:54:31 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (windows-nt)

>> I think with the following setup,
>> M-x pixel-scroll-mode
>> (setq pixel-resolution-fine-flag t)
>> a buffer with large images, as you shown, can be scrolled by height of 
>> typical line.
> I think I must be doing something wrong :/
> I used this snippet to insert 10 copies of a large picture in a new buffer:
>    (dotimes (_ 10)
>       (insert (propertize " " 'display '(image :type jpeg :file 
> "some-large-picture.jpg" :scale 1)) "\n"))
> and then I turned pixel-scroll-mode on with the setting you mentioned, but 
> Emacs still scrolls by full images.

Let me assume height of an image is less than height of visible area of
a window.

M-x pixel-scroll-mode
(setq pixel-resolution-fine-flag t)
M-: (pixel-scroll-up 1)

The (pixel-scroll-up 1) scrolls a buffer up by (frame-char-height) with
re-displaying each pixel.

A function that scrolls a buffer up like (pixel-scroll-up 1) but without
re-displaying each pixel, should be written.  The function serves as
alternative of (scroll-up).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]