From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: Detecting changes between dark and light mode on Mac OS Date: Sat, 27 Mar 2021 18:16:35 -0700 Message-ID: References: <345983B0-C75E-46FF-870C-5FBD3D7381B9@nonceword.org> <87h7l5j8hg.fsf@gnus.org> <87eeg5hiav.fsf@rfc20.org> <87y2eddkdi.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e1341205be8e84eb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22231"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Matt Armstrong , Lars Ingebrigtsen , Daphne Preston-Kendal , EMACS development team To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 28 03:22:23 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lQK8E-0005jF-V7 for ged-emacs-devel@m.gmane-mx.org; Sun, 28 Mar 2021 03:22:22 +0200 Original-Received: from localhost ([::1]:58480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQK8D-0008Lh-W4 for ged-emacs-devel@m.gmane-mx.org; Sat, 27 Mar 2021 21:22:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43266) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQK2u-0002tl-48 for emacs-devel@gnu.org; Sat, 27 Mar 2021 21:16:53 -0400 Original-Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]:37505) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQK2s-00064D-Db for emacs-devel@gnu.org; Sat, 27 Mar 2021 21:16:51 -0400 Original-Received: by mail-lf1-x12d.google.com with SMTP id q29so13163761lfb.4 for ; Sat, 27 Mar 2021 18:16:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=NZulG9yDLjBejUf7eE4RKZ4VRc7AJhuRap84UzAXdHs=; b=tbDDqkk/K+AKAqS6yhA0Mg0eqp5+uDEWjnY8GyA7QnB0n57hbmawwaQnR5P0UiGPGd PxhacA5qN+Fw5CdlC9C7nik36cZzoheVoD6Zae0RTqdOUqsudx+k8tSl5TYA/6KFyEgd naGLCxE0k5KiQy4oSXa3FgJIJmJDuKniWXNpvdJOJCnmTuNjmv4hcIcMUROoBDAzrVS1 XRaUVBUQHIsqsY/9pUXz3YMmG8jO3PB01lUE94hpnouZO21mAOyiZ3JUijkXoPT/vedD coxEtTzcztC4vw6lOYJUHqBNJWFM6NVqjzYB9Nxi2YAcUq8p6/YHkBmz2POsyTVu9p9+ teiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NZulG9yDLjBejUf7eE4RKZ4VRc7AJhuRap84UzAXdHs=; b=ntKU1PwFqu1C6I4KCPwZK2yYxdXhYP5tWpnpkXLOmg7r2w58oQ96ug+rp3ZH5xPDCl 3qoRcTtoBSX6OEMBR+Tgn43p/Yqaizdib8+54LXDrk2POrD5I6heun40IA5RhI+Mw8Cl NeshqAgaEIOQJSP9b/49re0JGZtlf5f1c1S4MXn70ZRJYDwzoFbn+ouh7RWkQmkzfdhQ Xc48fdX23sgQyC23C4RH0Aw2wEk9sXzPc5G7V2MA3w2nBtTQZSgnn+VxfSET5rHQ+ghX 18JKwcTK+hTdw3MHxMaZ7zOPR11P1n+6ltsBs0EkRT4P7OfDkNMuejQI/YxxGBXsdlOU 1fmQ== X-Gm-Message-State: AOAM530vSoZZD4pEFuNHiG8Xe29gu7vc6OVztm3II0cxIfJX+t8pfcCp jouNon/La6TsqbvW6G4Ea1VrJuvMOELZi6qeyIM= X-Google-Smtp-Source: ABdhPJxCYv8D/5bzchjFf+opNttJbeCdYhzS8pTVbAwKODX7YF7TSpqdKYYULN3QqYTaMEbzRZvDmI2TcPz1dPesjfY= X-Received: by 2002:ac2:4c85:: with SMTP id d5mr13001632lfl.503.1616894207537; Sat, 27 Mar 2021 18:16:47 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12d; envelope-from=yandros@gmail.com; helo=mail-lf1-x12d.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:267124 Archived-At: --000000000000e1341205be8e84eb Content-Type: text/plain; charset="UTF-8" The update of the mac port for emacs 27.2 includes this probably-interesting note: *** New hook mac-effective-appearance-change-hook. > Contributed by Peter Hardy. It looks like the code is in mac-win.el, viewable here: https://bitbucket.org/mituharu/emacs-mac/raw/a124e5d0ccb820095be99c78d51abfd36ee22d9b/lisp/term/mac-win.el HTH, ~Chad --000000000000e1341205be8e84eb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The update of the mac port for emacs 27.2 includes this pr= obably-interesting note:

*** New hook mac-effective-appearance-change-hook.
Contrib= uted by Peter Hardy.

It looks like the code is i= n mac-win.el, viewable here: ht= tps://bitbucket.org/mituharu/emacs-mac/raw/a124e5d0ccb820095be99c78d51abfd3= 6ee22d9b/lisp/term/mac-win.el

HTH,
~Chad
--000000000000e1341205be8e84eb--