all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Heime <heimeborgia@protonmail.com>
To: Heime <heimeborgia@protonmail.com>
Cc: Eli Zaretskii <eliz@gnu.org>, help-gnu-emacs@gnu.org
Subject: Re: Using defcustom to set width and height for set-window-scroll-bars
Date: Tue, 14 May 2024 11:37:08 +0000	[thread overview]
Message-ID: <9UxmPO6LEuqfnA4RJBcmh7WzjOXK4x0n5NPTwwKABdmrgQf-Il37xIlKbNJA6oSVMNz4v8ua0Qz9Xr8WlGIQLy-sWz7m3FFtDCyDS2ccweY=@protonmail.com> (raw)
In-Reply-To: <0BTA_y1dgK0FoWDfmuCJg-RPPScCJxdL3aoYwi5bCCtjDtIul7T4QgC9Ws_6KeVu3rppVmcLiKNqrPO5ozqFTEb6N5l00fCwvrcB_3FDn9U=@protonmail.com>

On Tuesday, May 14th, 2024 at 11:14 PM, Heime <heimeborgia@protonmail.com> wrote:

> On Tuesday, May 14th, 2024 at 11:03 PM, Heime heimeborgia@protonmail.com wrote:
> 
> > On Tuesday, May 14th, 2024 at 6:18 PM, Eli Zaretskii eliz@gnu.org wrote:
> > 
> > > > Date: Tue, 14 May 2024 00:34:23 +0000
> > > > From: Heime heimeborgia@protonmail.com
> > > > 
> > > > Am using a defcustom to specify the scroll bar size (width, height) in pixels
> > > > for use with set-window-scroll-bars
> > > > 
> > > > 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.
> 
> 
> Is defcustom with ":type 'integer", the right thing to do in order to allow
> users to customise width and height ?

Have changed the value from 80 to 160, yet I cannot see the difference, one 
should be double the other.



  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 [this message]
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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='9UxmPO6LEuqfnA4RJBcmh7WzjOXK4x0n5NPTwwKABdmrgQf-Il37xIlKbNJA6oSVMNz4v8ua0Qz9Xr8WlGIQLy-sWz7m3FFtDCyDS2ccweY=@protonmail.com' \
    --to=heimeborgia@protonmail.com \
    --cc=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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.