From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50141: Current part of emacs red, other parts blue Date: Sun, 22 Aug 2021 11:34:03 +0300 Organization: LINKOV.NET Message-ID: <87h7fijd8g.fsf@mail.linkov.net> References: <87tujjz612.5.fsf@jidanni.org> <83pmu7z3zg.fsf@gnu.org> <87lf4v3qwu.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23944"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: 50141@debbugs.gnu.org, =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 22 10:42:27 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 1mHj3i-00062f-7B for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 10:42:26 +0200 Original-Received: from localhost ([::1]:48434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mHj3h-00027R-3D for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 22 Aug 2021 04:42:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37656) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mHj1P-0006vA-5z for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 04:40:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mHj1O-0002s9-Sy for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 04:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mHj1O-0000Qa-QF for bug-gnu-emacs@gnu.org; Sun, 22 Aug 2021 04:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 22 Aug 2021 08:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50141 X-GNU-PR-Package: emacs Original-Received: via spool by 50141-submit@debbugs.gnu.org id=B50141.16296215681572 (code B ref 50141); Sun, 22 Aug 2021 08:40:02 +0000 Original-Received: (at 50141) by debbugs.gnu.org; 22 Aug 2021 08:39:28 +0000 Original-Received: from localhost ([127.0.0.1]:38157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHj0p-0000PI-TV for submit@debbugs.gnu.org; Sun, 22 Aug 2021 04:39:28 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:37707) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mHj0o-0000Ot-5X for 50141@debbugs.gnu.org; Sun, 22 Aug 2021 04:39:26 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id A16D4E0002; Sun, 22 Aug 2021 08:39:18 +0000 (UTC) In-Reply-To: <87lf4v3qwu.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 21 Aug 2021 14:48:01 +0200") 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:212402 Archived-At: > However, Dan's request has come up a number of times (e.g., bug#12056, > which I'm merging this with), so I'm wondering whether we should add > something like this... or at least add some infrastructure that would > allow it. > > The obvious thing would be to run something from `select-window', but I > don't see any obvious hook that we could be using there. Am I missing > something? I was thinking about adding a minor mode for changing > background colours in windows... > > On the other hand, if we want to add this, perhaps it'd make more sense > to just add a new variable to change the background colour of > non-selected backgrounds directly. There was a similar request recently in bug#49844 to highlight the active non-selected minibuffer only. The latest patch uses window-selection-change-functions and adds a window-local overlay with a special face. Adding a new variable would be nice to generalize such feature. When it will contain a face name, then the minibuffer could set it buffer-locally, so it will affect only the minibuffer for bug#49844.