unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
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 21:10:02 +0200	[thread overview]
Message-ID: <86ttmw2bxx.fsf@gnu.org> (raw)
In-Reply-To: <87wmrs9fyt.fsf@gmail.com> (message from Andrey Listopadov on Mon, 29 Jan 2024 20:53:34 +0300)

> From: Andrey Listopadov <andreyorst@gmail.com>
> Cc: 68786@debbugs.gnu.org
> Date: Mon, 29 Jan 2024 20:53:34 +0300
> 
> > ... 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.
> 
> Fair enough.  Right now I can't send a patch, because I don't have the
> solution for this problem.  The piece of code I sent works for me, but
> it's not general by any means, and has a lot of subtle flaws.
> 
> Maybe if you could point me out to parts of Emacs that do the
> calculation of the longest visible line for the scroll bar so I could
> adopt it instead of doing hacky unscallable-face-font-width-based
> calculation?  Or maybe help me think of a better way to calculate this.

That calculation is in xdisp.c:set_horizontal_scroll_bar, which also
sets the size of the scroll-bar thumb.





  reply	other threads:[~2024-01-29 19:10 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
2024-01-29 17:53   ` Andrey Listopadov
2024-01-29 19:10     ` Eli Zaretskii [this message]
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=86ttmw2bxx.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).