From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=C3=93scar?= Fuentes Newsgroups: gmane.emacs.bugs Subject: bug#37802: 27.0.50; Feature request: hook for theme enabling/disabling Date: Fri, 18 Oct 2019 02:29:23 +0200 Message-ID: <87d0euopzw.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="81891"; mail-complaints-to="usenet@blaine.gmane.org" To: 37802@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 18 02:30:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLG9m-000LB3-2U for geb-bug-gnu-emacs@m.gmane.org; Fri, 18 Oct 2019 02:30:14 +0200 Original-Received: from localhost ([::1]:34346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLG9j-0001G9-2A for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Oct 2019 20:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47853) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLG9b-0001Dl-Lb for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:30:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLG9a-0007I0-IX for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40243) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLG9a-0007Hs-Fa for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iLG9a-00073h-Ar for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Oct 2019 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 37802 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.157135857327067 (code B ref -1); Fri, 18 Oct 2019 00:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Oct 2019 00:29:33 +0000 Original-Received: from localhost ([127.0.0.1]:49064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLG97-00072V-0M for submit@debbugs.gnu.org; Thu, 17 Oct 2019 20:29:33 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:54564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iLG94-00072J-Ls for submit@debbugs.gnu.org; Thu, 17 Oct 2019 20:29:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47811) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLG93-00010B-HN for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:29:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLG92-00075V-Aj for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:29:29 -0400 Original-Received: from relayout02-redir.e.movistar.es ([86.109.101.202]:57245) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLG92-00074p-3T for bug-gnu-emacs@gnu.org; Thu, 17 Oct 2019 20:29:28 -0400 Original-Received: from sky (238.red-79-144-110.dynamicip.rima-tde.net [79.144.110.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 46vRjw4Dx3zdbhH for ; Fri, 18 Oct 2019 02:29:23 +0200 (CEST) X-CTCH-Score: 0.000 X-CTCH-ScoreCust: 0.000 X-TnetOut-Country: IP: 79.144.110.238 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 46vRjw4Dx3zdbhH.AC602 X-TnetOut-SpamCheck: no es spam, Unknown X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1571963365.10297@rgCHXrSqkZY7HmfPt+ASSg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:169623 Archived-At: I'm experimenting with some code that uses face-remap-add-relative to modify colors on specific windows. It takes the attribute of an existing face, alters it and uses :filtered to apply the change conditionally. On my specific case I use that technique for darkening the default background of the windows that have no keyboard focus. However, when I switch themes I have to manually force the recalculation of the "darked" background to adapt it to the new theme. If I had a hook that fires *after* a theme is enabled or disabled, I could automatize the recalculation. I looked at custom.el and the change seems simple enough so I wonder if there is any reason for not implementing such hook. In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-09-12 built on sky Repository revision: 421084d2cb160261b259bddb687bb2c234f8f1ef Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux bullseye/sid