From: Eli Zaretskii <eliz@gnu.org>
To: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
Cc: emacs-devel@gnu.org
Subject: Re: line-pixel-height beyond eol
Date: Wed, 13 Sep 2017 18:28:12 +0300 [thread overview]
Message-ID: <83shfqobxv.fsf@gnu.org> (raw)
In-Reply-To: <20170913.092430.784440060052023776.tkk@misasa.okayama-u.ac.jp> (message from Tak Kunihiro on Wed, 13 Sep 2017 09:24:30 +0900 (JST))
> Date: Wed, 13 Sep 2017 09:24:30 +0900 (JST)
> Cc: emacs-devel@gnu.org, tkk@misasa.okayama-u.ac.jp
> From: Tak Kunihiro <tkk@misasa.okayama-u.ac.jp>
>
> > I don't think I understand what value you want to obtain. Can you
> > elaborate, and perhaps also explain what do you want to do with that
> > value and why?
>
> With Eww, I often meet pages with wide images. I want to scroll
> pixel-wisely the buffers with auto-hscroll-mode off even when
> (current-column) is a large number.
>
> The building block of pixel-wise scrolling is described as below.
>
> (progn (vertical-motion 1)
> (dolist (vs (number-sequence 1 (1- (frame-char-height))))
> (set-window-vscroll nil vs t) (sit-for 0.01))
> (scroll-up 1))
>
> To determine when to flush in a buffer of lines with different height,
> I have to know
Just a moment: why would you need to change the above code when lines
have variable height? The above code scrolls the buffer one pixel at
a time until you scroll the height of frame's canonical character;
with tall lines, doing that will scroll less than the full line. But
why is that a problem? The user will just have to spin the wheel some
more.
> - height of line in pixel of the top line on screen.
Why the top line on screen? What is special about that line?
> I think that, on XXX condition, I rather should obtain it as
> frame-char-height instead of line-pixel-height. I cannot find how to
> describe the XXX condition.
I think you may be trying a specific solution too early. I'm not yet
sure I understand why the original code doesn't work for your needs.
next prev parent reply other threads:[~2017-09-13 15:28 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-12 10:12 line-pixel-height beyond eol Tak Kunihiro
2017-09-12 15:13 ` Eli Zaretskii
2017-09-13 0:24 ` Tak Kunihiro
2017-09-13 15:28 ` Eli Zaretskii [this message]
2017-09-13 23:14 ` Tak Kunihiro
2017-09-14 17:53 ` Eli Zaretskii
2017-09-15 1:39 ` Tak Kunihiro
2017-09-15 17:35 ` Eli Zaretskii
2017-09-23 12:57 ` Tak Kunihiro
2017-09-23 13:16 ` Eli Zaretskii
2017-10-05 9:50 ` Tak Kunihiro
2017-10-09 13:31 ` Eli Zaretskii
2017-10-16 5:13 ` Tak Kunihiro
2017-10-16 16:16 ` Eli Zaretskii
2017-10-17 0:29 ` Tak Kunihiro
2017-10-17 16:37 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83shfqobxv.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=tkk@misasa.okayama-u.ac.jp \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.