* bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled.
@ 2018-07-05 15:30 Keith David Bershatsky
2020-11-26 13:23 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Keith David Bershatsky @ 2018-07-05 15:30 UTC (permalink / raw
To: 32060
With a few long lines (of different lengths) in a scratch buffer in Emacs master branch (freshly built), it is possible to visually observe that the wrong line gets horizontally scrolled instead of the current line.
Step 1: Build a new Emacs from the master branch.
Step 2: In a scratch buffer, paste the following long lines:
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis.
Aliquam erat volutpat. Nunc eleifend leo vitae magna. In id erat non orci commodo lobortis. Proin neque massa, cursus ut, gravida ut, lobortis eget, lacus. Sed diam. Praesent fermentum tempor tellus. Nullam tempus. Mauris ac felis vel velit tristique imperdiet. Donec at pede. Etiam vel neque nec dui dignissim bibendum. Vivamus id enim. Phasellus neque orci, porta a, aliquet quis, semper a, massa. Phasellus purus. Pellentesque tristique imperdiet tortor. Nam euismod tellus id erat.
Step 3: Evaluate the following:
(progn
(fundamental-mode)
(setq-local auto-hscroll-mode 'current-line)
(scroll-left 10 t))
Step 4: Place the cursor at the very end of the buffer; i.e., at the very end of the last long line of text. Make sure that it gets horizontally scrolled.
Step 5: Press the arrow key up one (1) time.
Step 6: Press M-Left one (1) time. The cursor should now be on the second to the last line in the buffer, at the beginning of the word "lobortis."
Step 7: Now press the arrow keys up or down and watch as the wrong line gets horizontally scrolled. The line that was last visited before moving up/down is the line that gets horizontally scrolled instead of the current line.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled.
2018-07-05 15:30 bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled Keith David Bershatsky
@ 2020-11-26 13:23 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-11-26 13:23 UTC (permalink / raw
To: Keith David Bershatsky; +Cc: 32060
Keith David Bershatsky <esq@lawlist.com> writes:
> Step 4: Place the cursor at the very end of the buffer; i.e., at the very end of the last long line of text. Make sure that it gets horizontally scrolled.
>
> Step 5: Press the arrow key up one (1) time.
>
> Step 6: Press M-Left one (1) time. The cursor should now be on the second to the last line in the buffer, at the beginning of the word "lobortis."
>
> Step 7: Now press the arrow keys up or down and watch as the wrong line gets horizontally scrolled. The line that was last visited before moving up/down is the line that gets horizontally scrolled instead of the current line.
(This bug report unfortunately got no response at the time.)
I was able to reproduce this in Emacs 26, but in Emacs 28 it behaves
slightly different -- it's still wrong, but not quite in the same way.
That is, it only begins scrolling lines (the wrong lines) after moving a
bit a bit more.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-26 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-05 15:30 bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled Keith David Bershatsky
2020-11-26 13:23 ` Lars Ingebrigtsen
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.