From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: checking for light or dark background Date: Wed, 2 Feb 2022 21:48:51 +0700 Message-ID: References: <838rut77h2.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38719"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: goncholden Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 18:10:02 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 1nFJ8s-0009pS-9e for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 18:10:02 +0100 Original-Received: from localhost ([::1]:50122 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFJ8q-00080i-28 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 12:10:01 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFGwh-0004wy-1D for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 09:49:19 -0500 Original-Received: from [2607:f8b0:4864:20::936] (port=42878 helo=mail-ua1-x936.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFGwe-0001zd-BC; Wed, 02 Feb 2022 09:49:18 -0500 Original-Received: by mail-ua1-x936.google.com with SMTP id e17so19526246uad.9; Wed, 02 Feb 2022 06:49:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=nPEPX83tF9+gv9mHhR3ejvZ7W7BRj/BCMHXFAIqVA2A=; b=H2k1gS9/w1d8w/WCm6h8YodGECeta/jLHSDA6q2lpkIPebu9eljq7vqxj29HP35Q47 vIwAu7LVFxSZqH/z8+Xk03rBPGrs9FxfITE1o1P64ju9lWc0Kb4hkLLutBfyQtfOHW4l uRAHrQsdrWvarenVU6tAW5eDMHdKcSOfiZHwb39iyTrZMQb5jSAS43SceCQRiKk66iSK x5xE1wBDUCmdBoUQHOnYCzI0xlkGiAFcSw156uSqa+nOmqU/c9/N2A69Doiy8BoiqqZj Vnq5TXC6+SZsNqnePNzLdqLTP3pVD5jYvLofCBWEAHK3xpljMfE153vDnfGgLalI9W9j SBVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=nPEPX83tF9+gv9mHhR3ejvZ7W7BRj/BCMHXFAIqVA2A=; b=uj0zP07e6KvPLjmN0Z9n8hZPq1OiXEaeXM/2FRThPiylP4b/oM+f5VXirVashB67tb DfZJkNphlxTq4VGieNEP4lAx5QdBGIxU2ZsqZSom4foNW2yjBfGEclXbkM7LyoFTZsfQ UTs/zXOEfuqitOVuFpcwh5OD3lTh3rzdYF83Lv5bugX81X6r0T0sk0OyTQ7tOUaEVx1T pMc7Z0w4xPF+MMAnmL2Ecg/rB3J9aRq6oWuYXzDA6ko4ffyw1YydwJUzqtFuT/X2RfYs 30EAlSf5UK0oDrpQuZJRDdAK/RY0v1KLb/dXPp8tXPdaxBmoyNidyziSu7O94baUoImk 5Myw== X-Gm-Message-State: AOAM530wX0JePUcB8uKmVh+ZrulkRzRSBz3W00FcAdKSzovr1ScaTVfd hanANMKA6AbF5R1KVBVV2cKA2Sk1uoIuntQzMT0= X-Google-Smtp-Source: ABdhPJyAVgFJN58IMk3bfR/TDiEvvr4FeGNhv8bR/biPSEACZ33V+D99x9MUTX2KIX/Yh0BOLx7sy4fJkCLHni/rDZ8= X-Received: by 2002:a05:6102:5581:: with SMTP id dc1mr11569075vsb.76.1643813342295; Wed, 02 Feb 2022 06:49:02 -0800 (PST) In-Reply-To: X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::936 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x936.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no 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:135670 Archived-At: On Wed, 2 Feb 2022 at 21:05, goncholden wrote: > 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. You should not rely on (frame--current-background-mode) even if it is available. The double dash in its name tells you it is a semi-private implementation detail, subject to change at any time. You can access it, but when it changes and your code breaks, you will get no support. (frame-parameter FRAME 'background-mode), on the other hand, uses only public, documented symbols, guaranteed to be available and working well into the next century. (Exaggerating a bit here, but you get the idea.)