all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: clemera <clemera@posteo.net>
Cc: 35659@debbugs.gnu.org
Subject: bug#35659: 26.1; Weird horizontal scroll behavior with certain settings for `auto-hscroll-mode' and `hscroll-step`.
Date: Fri, 10 May 2019 10:14:45 +0300	[thread overview]
Message-ID: <83r296g4re.fsf@gnu.org> (raw)
In-Reply-To: <623e30c5-1bef-46c7-06fb-4d087e1a4153@posteo.net> (message from clemera on Thu, 9 May 2019 21:15:26 +0200)

tags 35659 notabug
thanks

> From: clemera <clemera@posteo.net>
> Date: Thu, 9 May 2019 21:15:26 +0200
> 
> After starting emacs -Q I set the following settings by evaluating them in *scratch*:
> 
> (setq auto-hscroll-mode 'current-line
>       hscroll-step 1
>       truncate-lines t)
> 
> Now after adding a long line right after the above code block (which exceeds the frame width)
> go to the end of the long line. The line scrolls as expected but when you go from there to the lines above, those get
> pushed to the left. I have recorded a gif which shows the described behavior:
> 
> https://imgur.com/a/lJYo4Od

This is the normal behavior of C-n and C-p (UP and DOWN arrow keys):
they try to move into the same column of the next/previous line as the
one of the line you started with.  The rationale is to allow you to
see the same horizontal region in the lines through which you
traverse.  Neither auto-hscroll-mode nor the current-line hscrolling
feature change that basic behavior.

If we were to disable this feature, typing C-n followed by C-p would
not return you back to the same column; you'd need to manually go to
the original column instead.  That'd be an annoyance, I think, as it
would effectively throw away your hscroll each time you move to
another line.

So I don't think there's a bug here.





  reply	other threads:[~2019-05-10  7:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-09 19:15 bug#35659: 26.1; Weird horizontal scroll behavior with certain settings for `auto-hscroll-mode' and `hscroll-step` clemera
2019-05-10  7:14 ` Eli Zaretskii [this message]
2019-05-10 12:37 ` Clemens Radermacher
2019-05-10 13:02   ` Eli Zaretskii
2019-05-10 13:24     ` Clemens Radermacher
2019-05-10 13:34       ` Eli Zaretskii
2019-05-10 13:44         ` Clemens Radermacher
2019-05-10 14:03           ` Eli Zaretskii
2019-05-10 14:25             ` Clemens Radermacher
2019-05-10 15:14               ` Eli Zaretskii
2019-08-27  0:06 ` Stefan Kangas

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=83r296g4re.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=35659@debbugs.gnu.org \
    --cc=clemera@posteo.net \
    /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.