Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scrolling #70

Open
gmoutso opened this issue Jun 15, 2020 · 9 comments
Open

Scrolling #70

gmoutso opened this issue Jun 15, 2020 · 9 comments

Comments

@gmoutso
Copy link

gmoutso commented Jun 15, 2020

Great package! I think I have this bug. When the annotation appears at the very top of the window (or just hidden above) and scroll-down-line, it doesn't move. Scrolling with the mouse makes my cursor go to the top of the buffer. For the mouse wheel I have customized (setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) but the scroll-down-line also appears with emacs -q. Can it be reproduced?

@cage2
Copy link
Collaborator

cage2 commented Jun 15, 2020 via email

@gmoutso
Copy link
Author

gmoutso commented Jun 16, 2020

Hi cage2! This is what I have.

The annotation "annotation" appears on a new line below the annotated text "word". The word+annotation occupy two visual lines. Below the annotation is line3.

scroll-up-line treats the word+annotation as one line. Incremental scroll-up-line just passes the screen through the word+annotation combo.

M-2 scroll-up-line treats the word+annotation as two lines. That is, when the word+annotation appear at the top of the screen and M-2 scroll-up-line, line3 is now at the top of the screen, as would happen without any numeric prefix. Same with higher prefix numbers.

Incremental scroll-down-line does not move pass the word+annotation. In fact, incremental scroll-down-line stops with the annotation and not the word at the top of the screen. In this case, a further scroll-down-line does nothing, but a further M-2 scroll-down-line brings the word at the top of the line (rather than one or two lines above word...).

M-2 scroll-down-line treats the word+annotation as two lines. That is, if the third visual line line3 is at the top of the screen, M-2 scroll-down-line brings the word+annotation at the top of the screen. Same with higher prefix numbers.

So in summary, M-2 scroll-up-line and M-2 scroll-down-line have same behavour (word+annotation is scrolled through only once). M-1 scroll-up-line and M-2 scroll-up-line does the same thing (word+annotation is scrolled through only once). And M-1 scroll-down-line stops at annotation.

(setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) was not enough to reproduce it on a clean emacs -q. If I also do
(setq mouse-wheel-progressive-speed nil) then scrolling down incrementally, the following happen:

  1. line3 at top 2) annotation at top (similar to scroll-down-line) 3) beginning of buffer!

Regards,
George

@gmoutso
Copy link
Author

gmoutso commented Jun 16, 2020

So for the time being, scrolling down two lines at a time has solved it for me :)

@cage2
Copy link
Collaborator

cage2 commented Jun 16, 2020 via email

@gmoutso
Copy link
Author

gmoutso commented Jun 19, 2020

With the scroll-down-line I get a new line only.

@cage2
Copy link
Collaborator

cage2 commented Jun 20, 2020 via email

@cage2
Copy link
Collaborator

cage2 commented Jun 21, 2020

Hi George!

I forwarded the code above to the Emacs bug tracker, folks was kind and reply to my issue very quickly. Unfortunately this behaviour was not recognized as a bug but as a limitation of the Emacs display routines. The only workaround is to do like you did: prepend an argument to the function scroll-down-line.

At this point i have no clue, the only thing i can do is mentioning this issue in the known bug section of the README file, probably.

Thank you again, for your reports, at least we can warn other users about this issue! :)

Bye!
C.

@gmoutso
Copy link
Author

gmoutso commented Jun 26, 2020

Still works great :)

@cage2
Copy link
Collaborator

cage2 commented Jun 27, 2020

Hi gmoutso!

I am happy that this package is still useful to you! I am investigating the issue related to the mouse wheel and i have to admit that i cannot reproduce the bug, all i get after evaluating the forms you provided is a smooth scrolling (nice!) and a glitch when displaying the first line of the buffer (the one annotated), when i expected the top line to be shown i got an empty line. I need to increment the rotation of the mouse wheel by another "tick", to made the line appears.

I suspect this is related to the display problem but actually this is just a guess.

Thank you for your report! :)

Bye!
C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants