From: Vincent Lefevre <vincent@vinc17.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 44284@debbugs.gnu.org
Subject: bug#44284: 27.1; with some Unicode font, scrolling upward with the mouse wheel actually scrolls downward when the cursor needs repositioning
Date: Sat, 31 Oct 2020 02:13:50 +0100 [thread overview]
Message-ID: <20201031011350.GJ27593@zira.vinc17.org> (raw)
In-Reply-To: <20201031004617.GI27593@zira.vinc17.org>
On 2020-10-31 01:46:17 +0100, Vincent Lefevre wrote:
> So I assume that the bug occurs somewhere in try_cursor_movement.
In try_cursor_movement, one has:
if (MATRIX_ROW_BOTTOM_Y (row) > last_y
|| PT > MATRIX_ROW_END_CHARPOS (row)
/* Line is completely visible last line in window
and PT is to be set in the next line. */
|| (MATRIX_ROW_BOTTOM_Y (row) == last_y
&& PT == MATRIX_ROW_END_CHARPOS (row)
&& !row->ends_at_zv_p
&& !MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P (row)))
With the culprit font, MATRIX_ROW_BOTTOM_Y (row) > last_y becomes 1
when the cursor reaches the last line. With a working font, the value
is still 0.
More precisely, with size 13, MATRIX_ROW_BOTTOM_Y (row) and last_y are:
27 442
40 442
53 442
...
417 442
430 442
443 442 <-- line 34 (last visible line)
and with size 14:
28 476
42 476
56 476
...
448 476
462 476
476 476 <-- line 34 (last visible line)
The issue with size 13 is that MATRIX_ROW_BOTTOM_Y (row) is 13*n+1
instead of 13*n.
That's all for today.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
next prev parent reply other threads:[~2020-10-31 1:13 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-28 16:36 bug#44284: 27.1; with some Unicode font, scrolling upward with the mouse wheel actually scrolls downward when the cursor needs repositioning Vincent Lefevre
2020-10-28 16:44 ` Vincent Lefevre
2020-10-28 16:53 ` Eli Zaretskii
2020-10-30 10:52 ` Vincent Lefevre
2020-10-30 11:31 ` Eli Zaretskii
2020-10-30 13:33 ` Vincent Lefevre
2020-10-30 13:37 ` Eli Zaretskii
2020-10-30 16:31 ` Vincent Lefevre
2020-10-30 20:34 ` Vincent Lefevre
2020-10-30 20:57 ` Vincent Lefevre
2020-10-30 21:09 ` Eli Zaretskii
2020-10-30 23:00 ` Vincent Lefevre
2020-10-31 0:46 ` Vincent Lefevre
2020-10-31 1:13 ` Vincent Lefevre [this message]
2020-10-31 7:38 ` Eli Zaretskii
2020-10-31 22:43 ` Vincent Lefevre
2020-11-01 0:24 ` Vincent Lefevre
2020-11-01 0:28 ` Vincent Lefevre
2020-11-01 16:15 ` Eli Zaretskii
2020-11-01 16:15 ` Eli Zaretskii
2020-11-01 17:32 ` Vincent Lefevre
2020-11-01 17:43 ` Eli Zaretskii
2020-11-01 18:34 ` Vincent Lefevre
2020-11-01 18:47 ` Eli Zaretskii
2020-11-01 21:13 ` Vincent Lefevre
2020-11-07 8:29 ` Eli Zaretskii
2020-11-07 10:35 ` Vincent Lefevre
2020-11-07 13:22 ` Eli Zaretskii
2020-11-01 15:55 ` Eli Zaretskii
2020-11-01 17:26 ` Vincent Lefevre
2020-10-30 20:58 ` 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=20201031011350.GJ27593@zira.vinc17.org \
--to=vincent@vinc17.net \
--cc=44284@debbugs.gnu.org \
--cc=eliz@gnu.org \
/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.