all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 09:18:43 +0300	[thread overview]
Message-ID: <86ttj0x6f0.fsf@gnu.org> (raw)
In-Reply-To: <KzITTOYsocsXx_lx3zSiVcTub2piofjoY9t0B-Cga35e0Vv8zjxE-XvDXcRoShKBQqUhIaZI_paGxTxDescZst91Uy1vqqOBST7TyswtyzM=@protonmail.com> (message from Heime on Tue, 14 May 2024 00:34:23 +0000)

> 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.



  reply	other threads:[~2024-05-14  6:18 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 [this message]
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

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=86ttj0x6f0.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.
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.