From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: checking for light or dark background Date: Wed, 02 Feb 2022 13:27:58 +0000 Message-ID: References: <838rut77h2.fsf@gnu.org> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26346"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 15:06:48 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFGHY-0006hF-30 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 15:06:48 +0100 Original-Received: from localhost ([::1]:36608 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFGHW-0004ox-ML for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 09:06:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFFg5-0001YV-1M for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 08:28:05 -0500 Original-Received: from mail-40140.protonmail.ch ([185.70.40.140]:16336) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFFg3-0007JU-0h for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 08:28:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643808481; bh=W+1akuwU0iL/WdFro7SRuld3nLbMp59d85ZJ6yJT0X8=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=DZpSQlcXvR0cMMlcJsMbv9EI2O9DiwXV/iK674yAOhtyqIT+vc2ZL+i3v9pvfzKqV 5wnj9sSjFh6Cgj52U34csAWZHwswdHE+69rXES9g7uMPDSet4whhHQkcYAb86RCA8x gYjuZhNegqDvkqqBDVIhiNX381JX4i+OL28xtsq3sYmTr2NM25mW7VMU91izdca2eB P2J9tTNsnMnP9YNA9adDhxIwTGaAxa+wA0vjEH4CVFF0OGIJShWeW6Out7MRmqZWuE ELM5MzqPkix8W0RrdmkQCjyOdXWtvbCyHtrFt2AQJMr1mXBV4RJh+Y7iYIiDDT2Fsw V3fvoRfIASEGA== In-Reply-To: Received-SPF: pass client-ip=185.70.40.140; envelope-from=goncholden@protonmail.com; helo=mail-40140.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135658 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, February 2nd, 2022 at 1:25 PM, goncholden wrote: > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original = Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 > > 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--curre= nt-backround-mode nil) was not available. What is the recommendation for Emacs>=3D28.