From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34569: 26.1.90; Zero wide scroll bars Date: Sat, 23 Feb 2019 11:51:17 +0200 Message-ID: <83sgweq1d6.fsf@gnu.org> References: <5C6BC77F.6020104@gmx.at> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="68524"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34569@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 23 10:52:16 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxTyi-000HjE-LC for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 10:52:16 +0100 Original-Received: from localhost ([127.0.0.1]:35504 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxTyg-00011T-O0 for geb-bug-gnu-emacs@m.gmane.org; Sat, 23 Feb 2019 04:52:14 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxTyX-00010m-9t for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 04:52:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gxTyV-0006Ss-CI for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 04:52:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gxTyU-0006SU-0C for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 04:52:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gxTyT-0006Hu-SI for bug-gnu-emacs@gnu.org; Sat, 23 Feb 2019 04:52:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Feb 2019 09:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34569 X-GNU-PR-Package: emacs Original-Received: via spool by 34569-submit@debbugs.gnu.org id=B34569.155091548124124 (code B ref 34569); Sat, 23 Feb 2019 09:52:01 +0000 Original-Received: (at 34569) by debbugs.gnu.org; 23 Feb 2019 09:51:21 +0000 Original-Received: from localhost ([127.0.0.1]:48899 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxTxp-0006H2-B2 for submit@debbugs.gnu.org; Sat, 23 Feb 2019 04:51:21 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:52675) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gxTxo-0006Gq-60 for 34569@debbugs.gnu.org; Sat, 23 Feb 2019 04:51:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:48040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gxTxh-00068V-07; Sat, 23 Feb 2019 04:51:13 -0500 Original-Received: from [176.228.60.248] (port=3022 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gxTxg-0007tQ-Ho; Sat, 23 Feb 2019 04:51:12 -0500 In-reply-to: <5C6BC77F.6020104@gmx.at> (message from martin rudalics on Tue, 19 Feb 2019 10:08:15 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155683 Archived-At: > Date: Tue, 19 Feb 2019 10:08:15 +0100 > From: martin rudalics > > Setting 'scroll-bar-width' to zero can have unforeseen consequences > depending on the toolkit used. Why would users set 'scroll-bar-width' to zero, instead of turning off scroll-bar-mode? Or are you saying that turning off scroll-bar-mode also produces the same bugs? If turning off scroll-bar-mode does work, then how about disabling the direct setting of 'scroll-bar-width', either silently or noisily? > /* Width that a scroll bar in frame F should have, if there is one. > Measured in pixels. > If scroll bars are turned off, this is still nonzero. */ > #define FRAME_CONFIG_SCROLL_BAR_WIDTH(f) ((f)->config_scroll_bar_width) > > This comment is, unfortunately, wrong But the comment says "disabled", not "width set to zero". is it correct when scroll-bar-mode is turned off? If so, perhaps just qualifying the comment by the method by which the scroll bars are disabled will be good enough? > Note also that with emacs 27.1 the bug can be produced more directly by > including > > (setq default-frame-alist '((vertical-scroll-bars . nil) (scroll-bar-width . 0))) > > in the early-init.el and then enabling vertical scroll bars. The > indirection via 'frame-notice-user-settings' is not needed there. If we disallow setting this parameter directly, or at least setting it to zero, this problem will also go away, right? Thanks.