From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#74435: Scrollbar width is not respected on Windows Date: Fri, 22 Nov 2024 08:45:39 +0100 Message-ID: <3366fba9-741b-46ef-8aab-d0570db7a76b@imayhem.com> References: <86frnkrhg2.fsf@gnu.org> <167bc233-4116-4273-8abb-615e193e4b8c@imayhem.com> <86cyiopoxh.fsf@gnu.org> <08adb21a-42f8-45bc-b39f-1f95df325444@imayhem.com> <86serjoj2p.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1475"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: johann.hoechtl@gmail.com, 74435@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 22 08:46:29 2024 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 1tEON2-0000GH-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 22 Nov 2024 08:46:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tEOMk-0004uk-HF; Fri, 22 Nov 2024 02:46:14 -0500 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 1tEOMd-0004uD-4m for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:46:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tEOMc-0003JM-Bx for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:46:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=PEnvD5obFWdB5eaige4E1PAcaBhAmNaOE9DtXBb84KI=; b=Pk6B6SdRpHNDzD4rkZ9HeVCkyrRHqlNS+vrcLN3RfY5eXDII8fsT8SaVPp0c9teHPd/yrdppaV3d5sJs7SI1F2KhHN+2P93a6meSTaIZP9XVNZOZrChNZvoIz/2F14mxnCXDAdga3hMMeKKDOca53BYatIFhsvyJLbdVBgDT+AZddcMYTY4YoK16TiPxhCs10pDOor4FGRESC9iWmIb5Md+jbTaqcupD8WPPmuUbDaXszqlkSY+HpKhUUsKBKcrFCO+OjEjaA4DupmNl/kvc5GSgOB910anytH9dCUa8Bp+nSqQ5wQUirg/8o9cdiuE97v5R/RU1rJxN3OE6c/bReQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tEOMb-0003JR-MO for bug-gnu-emacs@gnu.org; Fri, 22 Nov 2024 02:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 22 Nov 2024 07:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74435 X-GNU-PR-Package: emacs Original-Received: via spool by 74435-submit@debbugs.gnu.org id=B74435.173226155012708 (code B ref 74435); Fri, 22 Nov 2024 07:46:01 +0000 Original-Received: (at 74435) by debbugs.gnu.org; 22 Nov 2024 07:45:50 +0000 Original-Received: from localhost ([127.0.0.1]:52889 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEOMQ-0003Iu-3W for submit@debbugs.gnu.org; Fri, 22 Nov 2024 02:45:50 -0500 Original-Received: from mail.imayhem.com ([82.223.54.191]:37575 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tEOMM-0003Ie-OC for 74435@debbugs.gnu.org; Fri, 22 Nov 2024 02:45:48 -0500 Original-Received: from [192.168.68.104] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id EAD0080138; Fri, 22 Nov 2024 07:45:40 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <86serjoj2p.fsf@gnu.org> 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:295775 Archived-At: On 22/11/2024 7:53, Eli Zaretskii wrote: >> Date: Thu, 21 Nov 2024 23:21:05 +0100 >> Cc: johann.hoechtl@gmail.com, 74435@debbugs.gnu.org >> From: Cecilio Pardo >> >> I have tracked (I think) this problem to the function >> frame.c:gui_set_scroll_bar_width >> >> If the new value for the scrollbars width is equal to the current one, >> then it resets width to the default size. >> >> The 'if' tests for arg != FRAME_CONFIG_SCROLL_BAR_WIDTH(f). >> That is, if arg is equal to current width, the 'else' path is taken, >> which resets to default. >> >> I suppose this should test for arg != "DEFAULT_WIDTH", but I don't know >> where to find that. > > Thanks. I'd like to look into this, but it would help if I could > reproduce the issue. > >> Maybe you could not reproduce it because your scrollbars are on the >> default size? > > Maybe. The OP didn't seem to say it was necessary to specify > non-default scroll-bar width. > > So what is the minimum recipe for reproducing the issue? emacs -q and eval this twice: (set-frame-parameter nil 'scroll-bar-width 50) The bar will change to 50 on first evaluation, and got back to default on second.