From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Erik van Zwol <thejofat@gmail.com>, 57343@debbugs.gnu.org
Subject: bug#57343: hscroll current-line scrolls short lines too far to the left
Date: Tue, 23 Aug 2022 18:56:34 +0200 [thread overview]
Message-ID: <87tu62c30d.fsf@rub.de> (raw)
In-Reply-To: <83czcr85mw.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Aug 2022 16:13:27 +0300")
[-- Attachment #1: Type: text/plain, Size: 1372 bytes --]
On Tue, 23 Aug 2022 16:13:27 +0300 Eli Zaretskii <eliz@gnu.org> wrote:
>
>> From: Erik van Zwol <thejofat@gmail.com>
>> Date: Sun, 21 Aug 2022 22:03:29 -0600
>>
>> starting from 'emacs -Q':
>> Toggle-truncate-lines (so that long lines are truncated)
>> Evaluate the following:
>> (setq auto-hscroll-mode 'current-line)
>> (setq hscroll-margin 5)
>> (setq hscroll-step 1)
>> Insert enough text such that the line starts to hscroll
>> On the line directly below, insert enough text to fill about half the
>> width of the frame
>> Move point to the long line near the end (must be hscrolling the single
>> line)
>> Move point down to the next line, it should hscroll even though it does
>> not need to
>> See the animated gifs on this post:
>> https://www.reddit.com/r/emacs/comments/wgef0b/looking_for_better_alternative_to_autohscrollmode/
>>
>> I have attached a patch that I think fixes the issue. Please tell me
>> how to proceed, and what other information you need.
>
> Thanks.
>
> I feel there's something else at work here, because if you move the
> cursor up instead of down (i.e., to the previous instead of the next
> line), the problem doesn't happen.
I see the same hscrolling when moving to the next and to the previous
line, both the same length (too short for hscrolling), see the attached
screenshots.
Steve Berman
[-- Attachment #2: bug#57343-1.png --]
[-- Type: image/png, Size: 9452 bytes --]
[-- Attachment #3: bug#57343-2.png --]
[-- Type: image/png, Size: 7125 bytes --]
[-- Attachment #4: bug#57343-3.png --]
[-- Type: image/png, Size: 7201 bytes --]
next prev parent reply other threads:[~2022-08-23 16:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-22 4:03 bug#57343: hscroll current-line scrolls short lines too far to the left Erik van Zwol
2022-08-23 13:13 ` Eli Zaretskii
2022-08-23 16:56 ` Stephen Berman [this message]
2022-08-23 17:07 ` Eli Zaretskii
2022-08-24 3:48 ` Erik van Zwol
2022-08-24 3:50 ` Erik van Zwol
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tu62c30d.fsf@rub.de \
--to=stephen.berman@gmx.net \
--cc=57343@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=thejofat@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).