From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Using defcustom to set width and height for set-window-scroll-bars
Date: Tue, 14 May 2024 14:37:11 +0300 [thread overview]
Message-ID: <86cypowro8.fsf@gnu.org> (raw)
In-Reply-To: <69Pjs-4kZqyOQpRdZWauTLDUuKuFYUSmHn2QGw6V5SMBZuLAzXgP3XdcnV10CNhsHCNyYMB8wd_W9cnedSb_AFqeu8ZOmgQ2eWihKa4vx3M=@protonmail.com> (message from Heime on Tue, 14 May 2024 11:03:53 +0000)
> Date: Tue, 14 May 2024 11:03:53 +0000
> From: Heime <heimeborgia@protonmail.com>
> Cc: help-gnu-emacs@gnu.org
>
> On Tuesday, May 14th, 2024 at 6:18 PM, Eli Zaretskii <eliz@gnu.org> 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?
prev parent reply other threads:[~2024-05-14 11:37 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 0:34 Using defcustom to set width and height for set-window-scroll-bars Heime
2024-05-14 6:18 ` Eli Zaretskii
2024-05-14 11:03 ` Heime
2024-05-14 11:14 ` Heime
2024-05-14 11:37 ` Heime
2024-05-14 11:55 ` Eli Zaretskii
2024-05-14 11:38 ` Eli Zaretskii
2024-05-14 11:43 ` Heime
2024-05-14 12:00 ` Eli Zaretskii
2024-05-14 13:19 ` Heime
2024-05-14 13:33 ` Eli Zaretskii
2024-05-14 13:33 ` Po Lu
2024-05-14 13:54 ` Heime
2024-05-14 14:05 ` Eli Zaretskii
2024-05-14 14:09 ` Heime
2024-05-14 16:53 ` Eli Zaretskii
2024-05-14 18:08 ` How to tell if Emacs's built with GTK? [was: Using defcustom to set width and height for set-window-scroll-bars] Pierre Rouleau
2024-05-14 18:25 ` Eli Zaretskii
2024-05-14 19:12 ` Pierre Rouleau
2024-05-14 19:25 ` Eli Zaretskii
2024-05-14 20:01 ` Pierre Rouleau
2024-05-15 2:34 ` Eli Zaretskii
2024-05-14 14:19 ` Using defcustom to set width and height for set-window-scroll-bars Heime
2024-05-14 17:04 ` Eli Zaretskii
2024-05-14 20:13 ` Heime
2024-05-15 2:35 ` Eli Zaretskii
2024-05-15 2:48 ` Heime
2024-05-15 11:24 ` Eli Zaretskii
2024-05-14 21:33 ` Heime
2024-05-14 11:37 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86cypowro8.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).