From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#62707: 30.0.50; [PATCH] Non toolkit scroll bar handle Date: Sat, 08 Apr 2023 08:11:27 +0800 Message-ID: <87o7nznsgg.fsf@yahoo.com> References: <87h6tsfavd.fsf@ledu-giraud.fr> <83cz4gp3ps.fsf@gnu.org> <87pm8gdt3q.fsf@ledu-giraud.fr> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28004"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 62707@debbugs.gnu.org To: Manuel Giraud Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 08 02:12:24 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pkwBs-00075c-5w for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 Apr 2023 02:12:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkwBY-0003UZ-6y; Fri, 07 Apr 2023 20:12:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkwBW-0003TT-Hr for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 20:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkwBW-0005FL-AM for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 20:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkwBW-0004YB-5f for bug-gnu-emacs@gnu.org; Fri, 07 Apr 2023 20:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Apr 2023 00:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62707 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 62707-submit@debbugs.gnu.org id=B62707.168091270317465 (code B ref 62707); Sat, 08 Apr 2023 00:12:02 +0000 Original-Received: (at 62707) by debbugs.gnu.org; 8 Apr 2023 00:11:43 +0000 Original-Received: from localhost ([127.0.0.1]:57445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkwBD-0004Xc-64 for submit@debbugs.gnu.org; Fri, 07 Apr 2023 20:11:43 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:44455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkwBB-0004XO-IG for 62707@debbugs.gnu.org; Fri, 07 Apr 2023 20:11:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680912695; bh=nZu6RpFkUmZSHr2kRA7Oz/df1pS0sV+/r5mvflVEt5A=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=jVm9gx9Qoi0yBS/1bc9yOXEE1fKr6ti5cTed/6mTUgo+5ihES3JWkkg7y+iLN+djbLKBDI/JWcFxRcS+lTpJdwYY+UYrKUygNRLyeaJvL6XR/sy9866IvUgLNPyPmswsn7JWc2LV1/yVj3xOd8OWGdxR36o5l/cEfAbRnBrWrnQNyOKPmhARoq7RsyH+cey5FUIVMfLEiNwZRL8afwC43xdZHnziqlz8sQjlDjE++XE6RJ4Kw+HNPyDU/AR8QAHQhvQiZ4+i+KFnS933X98nmCwNFwHFPg/I+DCK2xnts2UdEPcUcpTi6BmEmssVsCBmt4LGub19hBrr5xqlbDhZ7w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1680912695; bh=8EddKYTzXvXTblS+LOYV64fSv0uP8pv9T5oVE3QQ+bG=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=B585xEEr8of2xs7oUUykdGd5sRmM2dEwsdfUIJhR6WkHIw423wXS1w2XwXge/v7hbvyLY+YgZU8ODQj/UHLJIkbmPgyKh0SYR6jKE72Vv7XQREa6H/zdFSB1P5/mfxqXlj+6BjKFOmzvTwp2TgKwuHP0u1DtH8RWVZRpD0z4/pd5WLCP0aT0fx0a2ZvZO0e7p5IHUJp5oAeoUDm0d30WZbBbZgnMszwoGZLeL22/fICoXQWozV/NL3pxo3g6vZ+5hlXOk7dsxxSdUDG9giI+zKrXlHaT5eX8Pza1zD13z2giYvFBbf1jL26AauPk3j31SANNFOZJjtTorxP7BZijxQ== X-YMail-OSG: 8lqE7J4VM1noKekHpD_46T.yDdvUrV3U7Qy7MMWm4EkJMMHCz7HmGcakMbQmAzb WOxj.zlhBg62hI8lM_gxwpVITgPgbDJmNmEse9kCrWxLuO0wD2nD8jsRw9_p4rd0V..fAYu3nhPa Bp9LcdDhHoLTH7ue5cAHMF5qFoyg9HcP..nJ7LNyu.99.l6rLDF5CZmknIVjmIVlR0SFWiZbLtxE LPxVYQIsVKjCraKjZ408syxS5pYc_g6SzqsCA4lkgp4diWJO2bKee4gnzRQ7C1TJkc5_46DwLc0L .AgDoKif3wXn7fkayAqFkmyq_0QvdOqe02_6zNOs_lRow3sDePxgFLdqYxBjkMhe6ycSm0aRM16_ uADA5FeFipIPwOQY0gqp3lIwXM4ZJVZ4Peft.zedsX1mpCaZYs9Z1ej87KQ2sgWTza1TUC4tJx_t xHqFyLni5sYt7J6GybWw3kPyLNvwr4GeSeYXBJ.kqpe50yrjxrAZQZxznCLPBAUD3zI1l2_xsHtj oqpkC.rn9d.69rSIkdK6MwTR_y2QhuOsO8M_mvMP32_NxbAHw4eUZXYDquO07_ARB3Dg0Pzvxix1 SdTWoLfEeSeercdIOgOGeYe2GbvQPypBYOR2B7r5ycXRk.EfECBpmyPoNm5UuuHDP4AT_gM2_C1m V.hASQddM1ij6mvlXFvvfiSPR1OYMehusa5L.PSvFXZ0uUWA44WxVQUYIY2Xv9d5ObLUvyRWoeL4 w_PnXY_o89Niy7jJWV1MyxcNQ3Ia_2wYId53bogPKnG8o3Vf39b4FDn4kA4fjWW68wcu8.xcepYE BnHn.7DJ_0c8qU.uhE10qgZX1vdbQhMJWjT70AVdo4 X-Sonic-MF: X-Sonic-ID: 88446008-39c3-4ee9-966c-75397f065054 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Sat, 8 Apr 2023 00:11:35 +0000 Original-Received: by hermes--production-sg3-6d6fb994f6-94jgf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7cab6487508275570c48845bbb0490cc; Sat, 08 Apr 2023 00:11:32 +0000 (UTC) In-Reply-To: <87pm8gdt3q.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Fri, 07 Apr 2023 09:55:21 +0200") X-Mailer: WebService/1.1.21365 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:259449 Archived-At: Manuel Giraud 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.