From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Using defcustom to set width and height for set-window-scroll-bars Date: Tue, 14 May 2024 14:37:11 +0300 Message-ID: <86cypowro8.fsf@gnu.org> References: <86ttj0x6f0.fsf@gnu.org> <69Pjs-4kZqyOQpRdZWauTLDUuKuFYUSmHn2QGw6V5SMBZuLAzXgP3XdcnV10CNhsHCNyYMB8wd_W9cnedSb_AFqeu8ZOmgQ2eWihKa4vx3M=@protonmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11167"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 14 13:37:46 2024 Return-path: Envelope-to: geh-help-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 1s6qTY-0002aI-0S for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 May 2024 13:37:44 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s6qTE-0000Xy-DG; Tue, 14 May 2024 07:37:24 -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 1s6qTB-0000Wv-9p for help-gnu-emacs@gnu.org; Tue, 14 May 2024 07:37:21 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s6qTB-00052s-1j for help-gnu-emacs@gnu.org; Tue, 14 May 2024 07:37:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=K23di+GF1pKfj1pQrtcDLzsmPpAPc+p7aXNuTxtlYCo=; b=XkdoRW5Ev5IQ F6EY9W/AN08eTj/yLGMBVOQYeXnFXHoWc1iv8h+c3af50yyZ42cz+uyTiHgwdAQM5Vs5izY+5iN2d J5kIrReuTwkKLoHBxIGkhcvfDAkOpQklJClVCPO6TyHQfQQzSI6Nc2MZGHDqrpQ1sraqc7MmLZhI0 uJJTN7zDUuV6dVxeCx5qW0DkLegf8Op6aSSUJR2HNP9sb5g/YbXy7JzZtk+Hgl5eHZ9E8OLjjW+xi 6eXWZjEje1Ycp4t+dD0jlY/9irHpNGwNbe1FTLO+dEAUMMMwAl1PIwQ+QY6yzaPwOG6bzQ1STslGE 7BRtGmmXO5I5CJ7EuWsnVg==; In-Reply-To: <69Pjs-4kZqyOQpRdZWauTLDUuKuFYUSmHn2QGw6V5SMBZuLAzXgP3XdcnV10CNhsHCNyYMB8wd_W9cnedSb_AFqeu8ZOmgQ2eWihKa4vx3M=@protonmail.com> (message from Heime on Tue, 14 May 2024 11:03:53 +0000) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146718 Archived-At: > Date: Tue, 14 May 2024 11:03:53 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > On Tuesday, May 14th, 2024 at 6:18 PM, Eli Zaretskii wrote: > > > > Emacs seems to get confused in applying width and height. > > > > > > (defcustom bdrive-barsize 80 > > > "Customizable variable to store the scroll bar size in pixels." > > > :type 'integer > > > :group 'bdrive) > > > > > > (let ( (window (selected-window)) > > > (width bdrive-barsize) > > > (vertical-type 'right) > > > (height bdrive-barsize) > > > (horizontal-type 'bottom) > > > (persistent nil) ) > > > (set-window-scroll-bars window width vertical-type > > > height horizontal-type persistent)) > > > > > > "Confused" how? The above snippet works for me. > > The size of the scroll bars that appear do not look correct to me, > they seem too small. They seem okay here. How did you determine that they are too small?