[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: line-pixel-height beyond eol
From: |
Eli Zaretskii |
Subject: |
Re: line-pixel-height beyond eol |
Date: |
Thu, 14 Sep 2017 20:53:45 +0300 |
> Date: Thu, 14 Sep 2017 08:14:26 +0900 (JST)
> Cc: address@hidden, address@hidden
> From: Tak Kunihiro <address@hidden>
>
> (progn (vertical-motion 1)
> (dolist (vs (number-sequence 1 (1- (save-excursion
> (goto-char (window-start))
> (line-pixel-height)))))
> (set-window-vscroll nil vs t) (sit-for 0.01))
> (scroll-up 1))
>
> Let's assume a line with image of height 144 pixel is located on the
> top line. When auto-hscroll-mode is off and (current-column) is large
> (the 144 pixel image is scrolled left), the top line looks 27 pixel
> height but (line-pixel-height) returns 144 pixel. The inconsistency
> results in jump.
Would it help not to use the height of the top window line, but
instead simply use the value returned by frame-char-height? That
takes its value from the frame's default font, and so should be
independent on what's in the window.
- line-pixel-height beyond eol, Tak Kunihiro, 2017/09/12
- Re: line-pixel-height beyond eol, Eli Zaretskii, 2017/09/12
- Re: line-pixel-height beyond eol, Tak Kunihiro, 2017/09/12
- Re: line-pixel-height beyond eol, Eli Zaretskii, 2017/09/13
- Re: line-pixel-height beyond eol, Tak Kunihiro, 2017/09/13
- Re: line-pixel-height beyond eol,
Eli Zaretskii <=
- Re: line-pixel-height beyond eol, Tak Kunihiro, 2017/09/14
- Re: line-pixel-height beyond eol, Eli Zaretskii, 2017/09/15
- Re: line-pixel-height beyond eol, Tak Kunihiro, 2017/09/23
- Re: line-pixel-height beyond eol, Eli Zaretskii, 2017/09/23