all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Manuel Giraud <manuel@ledu-giraud.fr>
Cc: Eli Zaretskii <eliz@gnu.org>, 62707@debbugs.gnu.org
Subject: bug#62707: 30.0.50; [PATCH] Non toolkit scroll bar handle
Date: Sat, 08 Apr 2023 08:11:27 +0800	[thread overview]
Message-ID: <87o7nznsgg.fsf@yahoo.com> (raw)
In-Reply-To: <87pm8gdt3q.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Fri,  07 Apr 2023 09:55:21 +0200")

Manuel Giraud <manuel@ledu-giraud.fr> writes:

> When I'm scrolling a file (with 'C-v'/'M-v' for example), the handle of
> the vertical scroll bar has its height that keeps changing even though
> the same amount of text is showed (there is no long line breaking
> involved).  I think it is distracting and weird but I may be missing
> something.

The size of the scroll bar represents the portion of text (in the entire
buffer) displayed in the current window.  So I'm afraid I cannot agree
to this change.

> While I was trying to understand how the scroll bar and its handle are
> drawn, I read this code where drawing a scroll bar is:
>
>        1- Fill the rectangle area above the handle (with background)
>        2- Fill the rectangle area of the handle (with foreground)
>        3- Fill the rectangle area below the handle (with background)

This is fast, and avoids much flicker.

> It seems more "natural" to me to:
>
>        1- Fill the entire scroll bar area (with background)
>        2- Fill the handle area on top of it (with foreground)

This will cause a lot of flicker on systems without XDBE, so I don't
agree to this either.

Last year, when I ported the scroll bar code to InputOnly windows, I
tried the change you suggested on an X terminal running NCDware 3.5, and
the scroll bar flickered heavily.





  parent reply	other threads:[~2023-04-08  0:11 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-07  6:46 bug#62707: 30.0.50; [PATCH] Non toolkit scroll bar handle Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-07  7:10 ` Eli Zaretskii
2023-04-07  7:55   ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-07  9:14     ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-07 10:40       ` Eli Zaretskii
2023-04-07 10:34     ` Eli Zaretskii
2023-04-07 11:56       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-07 12:56       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-07 13:46         ` Eli Zaretskii
2023-04-07 13:57           ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-08  0:13         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-04-08  0:11     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2023-04-08 14:46       ` Manuel Giraud via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=87o7nznsgg.fsf@yahoo.com \
    --to=bug-gnu-emacs@gnu.org \
    --cc=62707@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=manuel@ledu-giraud.fr \
    /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.