[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#29002: it.first_visible_x is erroneously 0 while horizontal scrollin
From: |
Eli Zaretskii |
Subject: |
bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling. |
Date: |
Thu, 26 Oct 2017 07:51:55 +0300 |
User-agent: |
K-9 Mail for Android |
On October 26, 2017 6:45:57 AM GMT+03:00, Keith David Bershatsky
<esq@lawlist.com> wrote:
> Here is a link to a screen-shot depicting #29002:
>
> https://www.lawlist.com/images/bug_hscl.png
This is not a bug; your expectations are incorrect. To see why, modify your
recipe to omit the "scroll right" part (step 5). You will see that bug-hscroll
reports zero.
When hscrolling only the current line, first_visible_x is set to zero, to
reflect the situation for the non-current lines, which are normally not
hscrolled. However, if you invoke scroll-right, the non-current lines
become hscrolled, so you see a non-zero value of first_visible_x.
In addition, the manual hscroll temporarily disables auto-hscrolling,
and moving cursor re-enables it, which is why gou see the value
reset to zero.
Yes, it's complicated...
I'm not sure why you expected non-zero values in this case, but if you
want to identify this situation, use the function
hscrolling_current_line_p. Or just calculate the value yourself
using w->hscroll.
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/25
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/25
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling.,
Eli Zaretskii <=
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/26
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/26
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/29
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/29
- bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling., Keith David Bershatsky, 2017/10/29