From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daphne Preston-Kendal Newsgroups: gmane.emacs.bugs Subject: bug#47291: [PATCH] Auto-detect ns-appearance of frames and call a hook when it changes Date: Tue, 18 May 2021 20:03:04 +0200 Message-ID: References: <1B39376A-B108-41FD-87EE-52D68E8F7256@nonceword.org> <87blb9hhiw.fsf@rfc20.org> Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.80.0.2.43\)) 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="21030"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47291@debbugs.gnu.org To: Matt Armstrong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 20:04:20 2021 Return-path: Envelope-to: geb-bug-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 1lj44q-0005D8-AW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 20:04:20 +0200 Original-Received: from localhost ([::1]:42734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj44p-0005iA-BO for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 14:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj44Z-0005du-0K for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45695) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj44Y-0006Qa-Nz for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lj44Y-0000u1-Gr for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 14:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Daphne Preston-Kendal Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 18:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47291 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 47291-submit@debbugs.gnu.org id=B47291.16213610013399 (code B ref 47291); Tue, 18 May 2021 18:04:02 +0000 Original-Received: (at 47291) by debbugs.gnu.org; 18 May 2021 18:03:21 +0000 Original-Received: from localhost ([127.0.0.1]:57238 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj43t-0000sk-FJ for submit@debbugs.gnu.org; Tue, 18 May 2021 14:03:21 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:33549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj43o-0000sS-3V for 47291@debbugs.gnu.org; Tue, 18 May 2021 14:03:19 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id D1ABF1683; Tue, 18 May 2021 14:03:09 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 18 May 2021 14:03:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=a30JOXV/CIdsSyvkLt1oDFhS2Gg+oYk0jJk0tk0Pq AI=; b=wwJeau5fUy89vv9+yengYkcEKqIiSRPLcDAoSO1/Q/FjZoipkgWzoMWzf ApHIqELqQ6iQShE2gZ9RaUyMQU3dsJf+MmkJ+P1N5d23c/YLaL82in1BG5kC2RlK TAqAj3R+7YLhscWqDPX9/0RavuxrcnpZc/CURGhUHhGroovmfj9ebUzSpRefPhnQ NSVTVAnr8VFbE+pXO1IrhHQJ6JCoofaVHEfK+Bt5Le95hZpX5d9EOhWSgJPiMUcK CcuQ2rQPZEXn9my3LnbFaRN+qV5yOh5nB4waymsiKBOZbPzL2DkJuHqDHyKL46GV L20NlZrLjO6zsBXIlXTg0bTgk3PzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdeijedguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpegtggfuhfgjfffgkfhfvffosehtqhhmtdhhtdejnecuhfhrohhmpeffrghp hhhnvgcurfhrvghsthhonhdqmfgvnhgurghluceoughpkhesnhhonhgtvgifohhrugdroh hrgheqnecuggftrfgrthhtvghrnhepjeejleejvefgiefhteeijeeiueegfeefveekheeg leekjeekhfdvueehgeeigedtnecukfhppeelhedrledtrddvfeegrddufeelnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughpkhesnhhonhgt vgifohhrugdrohhrgh X-ME-Proxy: Original-Received: from smtpclient.apple (ip5f5aea8b.dynamic.kabel-deutschland.de [95.90.234.139]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 18 May 2021 14:03:07 -0400 (EDT) In-Reply-To: <87blb9hhiw.fsf@rfc20.org> X-Mailer: Apple Mail (2.3654.80.0.2.43) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206825 Archived-At: On 23 Mar 2021, at 19:05, Matt Armstrong wrote: > I suggested an alternative approach on emacs-devel -- use the > dynamic-setting.el mechanism which is used for GTK but expressed in a > general way. I took a look at dynamic-setting.el but couldn=E2=80=99t quite see how = what this patch does would fit in with it/how it would enable the same functionality as this patch provides. It doesn=E2=80=99t seem to be documented? (Though in fairness, either is my patch at the moment!) The goal of this patch is to allow Emacs to automatically select different themes depending on the system-wide setting, and automatically change which theme is in use when the system-wide setting changes. There may be multiple themes involved in the change =E2=80= =94 for instance, I would want the light smart-mode-line theme plus light buffer theme enabled when the system is in light mode, but both should be deactivated and changed to the dark smart-mode-line and buffer themes when the system changes to dark mode. Is it possible to do that within the framework of what dynamic-setting provides? Sorry if this is obvious, I=E2=80=99m just not familiar with = this bit of Emacs. Daphne