From: goncholden <goncholden@protonmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: checking for light or dark background
Date: Wed, 02 Feb 2022 16:18:13 +0000 [thread overview]
Message-ID: <OdiK4C2rjKK3NliVj9313jogBuFef6Tw4SeSrrRr3VB_UTF42Yv9HWBsdL7YKDdC8GueWJK6QGvkF_oq28Rx6mfWrXDqaAQteR_BkLphcaY=@protonmail.com> (raw)
In-Reply-To: <835ypx72m1.fsf@gnu.org>
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, February 2nd, 2022 at 2:41 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> Date: Wed, 02 Feb 2022 13:27:58 +0000
>
> From: goncholden goncholden@protonmail.com
>
> Cc: help-gnu-emacs@gnu.org
>
> ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
>
> On Wednesday, February 2nd, 2022 at 1:25 PM, goncholden goncholden@protonmail.com wrote:
>
> > ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
> >
> > On Wednesday, February 2nd, 2022 at 12:56 PM, Eli Zaretskii eliz@gnu.org wrote:
> >
> > > Date: Wed, 02 Feb 2022 09:26:02 +0000
> > >
> > > From: goncholden via Users list for the GNU Emacs text editor help-gnu-emacs@gnu.org
> > >
> > > I want to determine whether emacs is using a light or dark background. This could be set up by emacs itself
> > >
> > > or by a theme.
> >
> > Like this:
> >
> > (frame-parameter nil 'background-mode)
> >
> > This evaluates to either light or dark. Very neat compared to what I was playing with initially.
>
> The problem I was having was that for Emacs 27.2, the command (frame--current-backround-mode nil)
>
> was not available. What is the recommendation for Emacs>=28.
I don't understand: (frame-parameter nil 'background-mode) works for
Emacs 28 and later as well.
Yes, I have now switched to (frame-parameter nil 'background-mode).
next prev parent reply other threads:[~2022-02-02 16:18 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-02 9:26 checking for light or dark background goncholden via Users list for the GNU Emacs text editor
2022-02-02 12:56 ` Eli Zaretskii
2022-02-02 13:25 ` goncholden
2022-02-02 13:27 ` goncholden
2022-02-02 14:41 ` Eli Zaretskii
2022-02-02 16:18 ` goncholden [this message]
2022-02-02 14:48 ` Yuri Khan
2022-02-03 4:19 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-03 4:31 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-02-08 1:33 ` James Cloos
2022-02-08 3:29 ` Eli Zaretskii
2022-02-20 19:30 ` James Cloos
2022-02-20 20:05 ` Eli Zaretskii
2022-02-21 11:16 ` Yuri Khan
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='OdiK4C2rjKK3NliVj9313jogBuFef6Tw4SeSrrRr3VB_UTF42Yv9HWBsdL7YKDdC8GueWJK6QGvkF_oq28Rx6mfWrXDqaAQteR_BkLphcaY=@protonmail.com' \
--to=goncholden@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.