From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.devel Subject: Re: Dark mode by default Date: Sun, 13 Sep 2020 18:38:37 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15190"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Sep 13 18:39:38 2020 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 1kHV2Q-0003p1-0l for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 18:39:38 +0200 Original-Received: from localhost ([::1]:34712 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHV2P-00014q-3r for ged-emacs-devel@m.gmane-mx.org; Sun, 13 Sep 2020 12:39:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHV1d-0000Pa-55 for emacs-devel@gnu.org; Sun, 13 Sep 2020 12:38:49 -0400 Original-Received: from sonic301-22.consmr.mail.ir2.yahoo.com ([77.238.176.99]:36071) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kHV1a-0005KY-Cx for emacs-devel@gnu.org; Sun, 13 Sep 2020 12:38:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1600015122; bh=BOyM8dLxWSX8h+zoRmLziO96PEgtKRO4taP+lWPN//I=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject; b=mCIf1Nps8rl9cq/sht/RygFAMtoPiTd/icj1HtF31cJZw2OrLu9htigjZPwc839IiGJ8/Zufk4bRArj8M6jE8Wo3vQrJqAszlvOHQsxJ8B8Pt+t3ZfMhfBrZnFDo4GdZXGjFQnOwBqbm0+jE9nqBchDPyYWQJidDWt9C3FpyfuJvW5emIM0ymSYBcjNqceplHsjvXu80/E7gV+Vl9utCvSIcS9BboIdVGOwxArpJzZP5dKNCBX7fBGgFiP7YqRdypIUcuI9sZzb4eqiOlZcSKObiAzhyWkNArdGMIeq0i8hfltCD+EcWDol0JCgHuvv4JhSLNkdZvmtqbV0PbHfyzw== X-YMail-OSG: 1WJ2TWUVM1nIL3VKMM_vHrAJvG1QJS_ZmpPErCXJEl.2Cwcl8AvBbCSb.C0BJId OtJHQjHKnIbkns9eFg4q9OEfcG75U9FY7AMxH4diQXtdN4h8IEuuu4DjkGNECNAA.NvSxn73wb8p LCL7u8jBGbryoyPGPheLsfLZgrv3fpX2eK75IOwqR8w0Vt69zCIcDmsFe52dDHVObo_cRf.oPqyC h6MGFuKhddCqcVHW0b80qSURKJgCXtV7qQ0fgPgcfwqzD.gUZ7WSr6AKsAYskdT6YUjBrp59zapq 8HfAwJcJlj8dqHiPFe.AorWRTLi5qkWVcsP90J5FddxZ7M.eGsouWV2aYkynVtz5_jWXwxWDhQju .2zcix9fxKaq7zm3McFNnZMuCqpOLSZxX1fuRjIZBLMdnmPlbp7yCJKMxCJO764w.Bz329IqCCir rtxje8kBcnRn12TJBmxSTGxj_v_ZttFltbOuvWhCq84nGkVDDRhWAXpEVVyuHlre48N014eSYck6 WjWNgHUUqQBA1CjpEZpfUcEld1vHM6KzcZzqYoG.YkrYt5S2LitbINXeJBoms_iolw0G91tqHyA_ r.o2HdXKiaNoDjW43djBDcC4WP5HoCNkHjLdto.SD636zmTBv3IFuWjQvtk1MwQ8g8YKda5X0MNy EG7CDGIKQRMQSLbd8aa3UWT3V4ial.676eat0j5UNZGejq_ETDhC_5ivseXvcViL9op_nqdjOaFG dcw5QCCwQLW69Db2arSJP0sBTz33pekBgkLuFtXeEqy3NXIAo0I.ju0c8HwHSnC4Y7IcG69z7GtK p2_B1OVNcNUHR6uRUZz.Mtk4mfu5rRO7uexI17vSlF Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ir2.yahoo.com with HTTP; Sun, 13 Sep 2020 16:38:42 +0000 Original-Received: by smtp403.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 46b98599b875a41db1f021e9168177e4; Sun, 13 Sep 2020 16:38:38 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Sun, 13 Sep 2020 10:35:23 -0400") X-Mailer: WebService/1.1.16583 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.7) Received-SPF: pass client-ip=77.238.176.99; envelope-from=mardani29@yahoo.es; helo=sonic301-22.consmr.mail.ir2.yahoo.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 12:38:42 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:255520 Archived-At: Stefan Monnier writes: > > Could you report this as a bug? > I'm not sure if it's a bug or a feature request. What's the mechanism you described that should work, at least on GNU/Linux? If it's based on ~/.Xresources, then it's normal that it doesn't work on macOS because macOS, by default, does not use the X Window System. We could consider it a feature request, though, where we may want to do, for example: - Support on macOS a similar system than the one we have for Windows to emulate ~/.Xresources using the Windows Registry. - Use the native Apple APIs to detect if the system is using light or dark mode and change the background color of Emacs accordingly. This seems a much more controversial change.