From: Eli Zaretskii <eliz@gnu.org>
To: Andrey Listopadov <andreyorst@gmail.com>
Cc: 68786@debbugs.gnu.org
Subject: bug#68786: 30.0.50; Horizontal overscroll
Date: Mon, 29 Jan 2024 14:02:08 +0200 [thread overview]
Message-ID: <86msso4abj.fsf@gnu.org> (raw)
In-Reply-To: <871qa1b08i.fsf@gmail.com> (message from Andrey Listopadov on Sun, 28 Jan 2024 23:41:57 +0300)
> From: Andrey Listopadov <andreyorst@gmail.com>
> Date: Sun, 28 Jan 2024 23:41:57 +0300
>
> However, when scrolling to the right with the touchpad (to avoid
> confusion view goes to the right and the text goes to the left), we can
> do this:
>
> |_____________Emacs____________|
> |ation. |
> |ts buffer. |
> | |
> | |
> | |
> |______________________________|
> |-------------------------=====|
> |______________________________|
>
> The scrollbar itself doesn't allow us to go beyond the longest text
> visible text. Scrolling with the touchpad, however, allows for this.
> We can even do this:
>
> |_____________Emacs____________|
> | |
> | |
> | |
> | |
> | |
> |______________________________|
> |----------------------------==|
> |______________________________|
>
> Or even this:
>
> |_____________Emacs____________|
> | |
> | |
> | |
> | |
> | |
> |______________________________|
> |-----------------------------=|
> |______________________________|
>
> The text is so far left, that the draggable portion of the scrollbar no
> longer shrinks.
The above can also be done with horizontal scroll bar, if instead of
dragging the scroll-bar's "thumb" you click on the arrow at the right
side of the scroll bar. At least it works here (perhaps this depends
on the toolkit, I don't know).
So I think the inconsistency is much smaller than you think, and we
should stop right here and talk about why this makes you uncomfortable
or requires any changes in your opinion. I personally find nothing
bad or unexpected with the ability to scroll past the last visible
character: after all, if the user doesn't want that, he/she can avoid
scrolling farther than he/she wants.
It is true that most other applications don't vary the thumb size, but
Emacs has always behaved like it does, so changing it to follow the
other apps is not an option at this point, at least not by default.
Having said that, ...
> I would like to ask for a feature to limit the horizontal scroll by the
> longest line, much like the horizontal scrollbar works by default. It
> may not be the longest line in the buffer, as calculating this for huge
> buffers is probably too impactful unless we can cache the longest line
> length until the buffer is changed. Or maybe Emacs already knows the
> buffer's "dimensions", I don't know.
... I won't object to such a feature, provided that it's optional and
OFF by default, and also that it is supported on as many toolkits as
is practical. Patches welcome.
next prev parent reply other threads:[~2024-01-29 12:02 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-28 20:41 bug#68786: 30.0.50; Horizontal overscroll Andrey Listopadov
2024-01-29 12:02 ` Eli Zaretskii [this message]
2024-01-29 17:53 ` Andrey Listopadov
2024-01-29 19:10 ` Eli Zaretskii
2024-01-31 16:40 ` Andrey Listopadov
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=86msso4abj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=68786@debbugs.gnu.org \
--cc=andreyorst@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).