unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Clemens Radermacher <clemens.radermacher@posteo.de>
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 16:02:43 +0300	[thread overview]
Message-ID: <83ef56fong.fsf@gnu.org> (raw)
In-Reply-To: <f834a655-9d03-aac1-20a9-aad67790b8b2@posteo.de> (message from Clemens Radermacher on Fri, 10 May 2019 14:37:59 +0200)

> Cc: eliz@gnu.org
> From: Clemens Radermacher <clemens.radermacher@posteo.de>
> Date: Fri, 10 May 2019 14:37:59 +0200
> 
> > Neither auto-hscroll-mode nor the current-line hscrolling
> > feature change that basic behavior.
> 
> When I do the described steps with hscroll-step set to 0 I don't get this
> behavior. Then it is the way I would like it to be (just go to the end of the previous
> line without scrolling it when it doesn't exceeds the window width). 

Then I guess you already have the solution that fits your needs,
right?

> In my opinion the behavior in the gif is a bug,
> the lines which do no exceed the window width should not be scrolled should they?

By default, they are scrolled, exactly as they are when
auto-hscroll-mode is t.  You are saying that the 'current-line' mode
should behave differently because of some different expectations in
that specific case.  That's debatable, but the fact is the code which
implements that mode was never meant to change this basic behavior of
horizontal scrolling.

If someone wants to write code to cater also to the behavior you want
to see, I promise to review it.  But I won't myself work on this, as
this area of the Emacs display is already quite tricky and full of
subtleties.  Sorry.





  reply	other threads:[~2019-05-10 13:02 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
2019-05-10 12:37 ` Clemens Radermacher
2019-05-10 13:02   ` Eli Zaretskii [this message]
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

  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=83ef56fong.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=35659@debbugs.gnu.org \
    --cc=clemens.radermacher@posteo.de \
    /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).