From: Keith David Bershatsky <esq@lawlist.com>
To: 32060@debbugs.gnu.org
Subject: bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled.
Date: Thu, 05 Jul 2018 08:30:05 -0700 [thread overview]
Message-ID: <m2va9tem4i.wl%esq@lawlist.com> (raw)
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.
next reply other threads:[~2018-07-05 15:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-05 15:30 Keith David Bershatsky [this message]
2020-11-26 13:23 ` bug#32060: Horizontal Scrolling (Current Line): Wrong line gets h-scrolled Lars Ingebrigtsen
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=m2va9tem4i.wl%esq@lawlist.com \
--to=esq@lawlist.com \
--cc=32060@debbugs.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.