GNU bug report logs - #54237
Disabling `scroll-bar-mode' fails when setting `default-frame-alist'

Previous Next

Package: emacs;

Reported by: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>

Date: Thu, 3 Mar 2022 14:46:02 UTC

Severity: normal

Tags: moreinfo

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 54237 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Tor Kringeland <tor.a.s.kringeland <at> ntnu.no>
Cc: 54237 <at> debbugs.gnu.org
Subject: Re: bug#54237: Disabling `scroll-bar-mode' fails when setting
 `default-frame-alist'
Date: Thu, 03 Mar 2022 15:55:40 +0100
Tor Kringeland <tor.a.s.kringeland <at> ntnu.no> writes:

>   emacs -Q --daemon -l test.el
>
> where the content of test.el is
>
>   (scroll-bar-mode -1)
>   (setq default-frame-alist '((cursor-color . "#007fff")))
>
> fails to disable `scroll-bar-mode'.  When opening an Emacs client, I
> have to toggle `scroll-bar-mode' two times to disable it.  The first
> time it is "enabled" again (no visible change) and the second time it's
> disabled.  The problem disappears if I remove the second line.
>
> I'm using Emacs 29 built from master earlier today.

`scroll-bar-mode' disables itself by altering default-frame-alist, so I
think what you're seeing is predictable?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 74 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.