[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scroll-down with pixel transition
From: |
Eli Zaretskii |
Subject: |
Re: scroll-down with pixel transition |
Date: |
Thu, 13 Apr 2017 11:57:24 +0300 |
> From: Yuri Khan <address@hidden>
> Date: Thu, 13 Apr 2017 15:35:51 +0700
> Cc: Tak Kunihiro <address@hidden>, Emacs developers <address@hidden>
>
> Desired behavior: The display is updated n times, with the window
> scrolled 1 pixel, then 2 pixels, …, then n-1 pixels, then n pixels,
> where n is the height of a line in pixels.
>
> Attempted implementation:
>
> (defun my-scroll-down-line ()
> (interactive)
> (scroll-down 1) ;; Undesired redraw happens here
> (set-window-vscroll nil (1- (frame-char-height)) t)
> (sit-for 0.001)
> (dolist (vs (reverse (number-sequence 0 (- (frame-char-height) 2))))
> (set-window-vscroll nil vs t)
> (sit-for 0.001)))
>
> Observed behavior: The display is updated n+1 times, first with the
> window scrolled a whole line, then 1 pixel, 2 pixels, …, n-1 pixels,
> finally a whole line again.
See my response to the code posted by Tak-san.
- Re: scroll-down with pixel transition, (continued)
- Re: scroll-down with pixel transition, Stefan Monnier, 2017/04/23
- Re: scroll-down with pixel transition, Richard Stallman, 2017/04/25
- Re: scroll-down with pixel transition, Dmitry Gutov, 2017/04/25
- Re: scroll-down with pixel transition, Stefan Monnier, 2017/04/25
- Re: scroll-down with pixel transition, Richard Stallman, 2017/04/26
- Re: scroll-down with pixel transition, Richard Stallman, 2017/04/26
- Re: scroll-down with pixel transition, Clément Pit-Claudel, 2017/04/15
- Re: scroll-down with pixel transition, Eli Zaretskii, 2017/04/15
- Re: scroll-down with pixel transition, Clément Pit-Claudel, 2017/04/15
- Re: scroll-down with pixel transition, Yuri Khan, 2017/04/13
- Re: scroll-down with pixel transition,
Eli Zaretskii <=