GNU bug report logs - #37802
27.0.50; Feature request: hook for theme enabling/disabling

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Óscar Fuentes <ofv@HIDDEN>; dated Fri, 18 Oct 2019 00:30:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 18 Oct 2019 00:29:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 17 20:29:33 2019
Received: from localhost ([127.0.0.1]:49064 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iLG97-00072V-0M
	for submit <at> debbugs.gnu.org; Thu, 17 Oct 2019 20:29:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:54564)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <ofv@HIDDEN>) id 1iLG94-00072J-Ls
 for submit <at> debbugs.gnu.org; Thu, 17 Oct 2019 20:29:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47811)
 by lists.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <ofv@HIDDEN>) id 1iLG93-00010B-HN
 for bug-gnu-emacs@HIDDEN; Thu, 17 Oct 2019 20:29:30 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ofv@HIDDEN>) id 1iLG92-00075V-Aj
 for bug-gnu-emacs@HIDDEN; Thu, 17 Oct 2019 20:29:29 -0400
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 <ofv@HIDDEN>) id 1iLG92-00074p-3T
 for bug-gnu-emacs@HIDDEN; Thu, 17 Oct 2019 20:29:28 -0400
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@HIDDEN)
 by relayout02.e.movistar.es (Postfix) with ESMTPSA id 46vRjw4Dx3zdbhH
 for <bug-gnu-emacs@HIDDEN>; Fri, 18 Oct 2019 02:29:23 +0200 (CEST)
From: =?utf-8?Q?=C3=93scar_Fuentes?= <ofv@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 27.0.50; Feature request: hook for theme enabling/disabling
Date: Fri, 18 Oct 2019 02:29:23 +0200
Message-ID: <87d0euopzw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
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@HIDDEN
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-Received-From: 86.109.101.202
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)


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




Acknowledgement sent to Óscar Fuentes <ofv@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#37802; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.