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: Wed, 15 May 2024 14:24:13 +0300 Message-ID: <867cfvuxlu.fsf@gnu.org> References: <86bk58wrlc.fsf@gnu.org> <87bk58zfeh.fsf@yahoo.com> <861q64wkto.fsf@gnu.org> <48ikiozG2rCg-6_Hbm6wWOhcezLz9AhGwc7pwMUBJIUHwaIQ7zGRMkR3krVLbDHsBOdBACRKxmdvUe87uuaZfxKpcoS-4e8BCmizgJIUbrg=@protonmail.com> <86ttj0uxyt.fsf@gnu.org> <86bk57vm2j.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5315"; 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 Wed May 15 13:24:51 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 1s7Ckc-0001CY-FE for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 May 2024 13:24:50 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s7CkB-0005tX-18; Wed, 15 May 2024 07:24:23 -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 1s7Ck8-0005tK-BF for help-gnu-emacs@gnu.org; Wed, 15 May 2024 07:24:20 -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 1s7Ck6-00053D-Gp for help-gnu-emacs@gnu.org; Wed, 15 May 2024 07:24:19 -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=OZMa/ZP3u2hvXx7IFQqGVDx8teF1tmDb/skAibNniik=; b=R4Xs6OmPC/9X wZuhGwzt7p3asHIkMrwuq0YIYIc0yEJ6y/k1B+4Q3WY87wG85fsUYMFAU16bDxDo/r5avp0pb1H1d FOD4gR6ScShDNpPUwo82GTXkzaxAM3rgd7cPAdrHOTiTbglE9N8pui47eThrbDjuS5aS1COoWJ35q YrbRhRtIhGdKIi40TPJrl1FC5cFk8lSMfNZitLRb8HQvhqsBo6s3oj0bTgePO+j9vOTzhbpXEaEPE QN6+iFBXrgXU0AomJt3rTleHzrlsIjjNeIY9DtkIE5IikJSBI+Zjvl1Gvvw8sydvupmSci4WYFIlL vD8i/fp9/q+Qz/3kuTbWUA==; In-Reply-To: (message from Heime on Wed, 15 May 2024 02:48:05 +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:146752 Archived-At: > Date: Wed, 15 May 2024 02:48:05 +0000 > From: Heime > Cc: help-gnu-emacs@gnu.org > > > > > > > What do default-font-height and default-font-width return in your > > > > > > case? > > > > > > > > > > (face-attribute 'default :height nil 'default) > > > > > > > > > > gives me > > > > > > > > > > 58 (#o236, #x9e) > > > > > > > > That's not what I asked you to do. It doesn't answer the question of > > > > how many pixels does each column and each screen line take. If you do > > > > what I asked, we will have our answers in hand in no time. > > > > > > What commands do I have to rum to get the information you asked ? > > > > > > The ones I mentioned above, default-font-width and > > default-font-height. > > > > But those are not commands, they are functions, so you invoke them via > > M-: > > I get > > 13 (#o15, #xd, ?\C-m) > 25 (#o31, #x19, ?\C-y) Then 3 and 5 you got from window-scroll-bars was not far off the target.