all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Tor Kringeland <tor.a.s.kringeland@ntnu.no>
Cc: 54237@debbugs.gnu.org
Subject: bug#54237: Disabling `scroll-bar-mode' fails when setting `default-frame-alist'
Date: Thu, 03 Mar 2022 16:20:53 +0100	[thread overview]
Message-ID: <8735jzhxka.fsf@gnus.org> (raw)
In-Reply-To: <m2ilsvvzjx.fsf@ntnu.no> (Tor Kringeland's message of "Thu, 03 Mar 2022 16:14:10 +0100")

Tor Kringeland <tor.a.s.kringeland@ntnu.no> writes:

>> `scroll-bar-mode' disables itself by altering default-frame-alist, so I
>> think what you're seeing is predictable?
>
> I see, I didn't know.  Can I disable `scroll-bar-mode' via
> `default-frame-alist' directly?

Yes, for new frames, you can just set:

(setq default-frame-alist '((vertical-scroll-bars)))

> The problem arose since `set-cursor-color' doesn't work when starting
> Emacs as a server so I changed `default-frame-alist' but that enabled
> `scroll-bar-mode' ...
>
> Feel free to close this as it's not a bug, then.

Perhaps this quirk should be documented in the scroll-bar-mode doc
string, though?

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





  reply	other threads:[~2022-03-03 15:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-03 14:44 bug#54237: Disabling `scroll-bar-mode' fails when setting `default-frame-alist' Tor Kringeland
2022-03-03 14:55 ` Lars Ingebrigtsen
2022-03-03 15:14   ` Tor Kringeland
2022-03-03 15:20     ` Lars Ingebrigtsen [this message]
2022-03-03 15:53       ` bug#54237: [External] : " Drew Adams
2022-03-04 15:56       ` Lars Ingebrigtsen

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=8735jzhxka.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=54237@debbugs.gnu.org \
    --cc=tor.a.s.kringeland@ntnu.no \
    /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.