unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Erik van Zwol <thejofat@gmail.com>
Cc: 57343@debbugs.gnu.org
Subject: bug#57343: hscroll current-line scrolls short lines too far to the left
Date: Tue, 23 Aug 2022 16:13:27 +0300	[thread overview]
Message-ID: <83czcr85mw.fsf@gnu.org> (raw)
In-Reply-To: <CAHqWQpfYfaMOM9Lj10Z-JkB4CWvTwT=QX3Go1CMFhYdab4mmSA@mail.gmail.com> (message from Erik van Zwol on Sun, 21 Aug 2022 22:03:29 -0600)

> 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.

So I need to look closer at what is going on and why.  Stay tuned.





  reply	other threads:[~2022-08-23 13:13 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 [this message]
2022-08-23 16:56   ` Stephen Berman
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=83czcr85mw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=57343@debbugs.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).