From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22466: 25.0.50; disable-theme apparently forces a redisplay and causes a screen flash Date: Thu, 28 Jan 2016 05:36:58 +0200 Message-ID: <83egd2z86d.fsf@gnu.org> References: <87y4bcsogq.fsf@gmail.com> <83powo1j71.fsf@gnu.org> <87io2gns3b.fsf@gmail.com> <831t9414it.fsf@gnu.org> <87bn86ojtw.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1453952376 745 80.91.229.3 (28 Jan 2016 03:39:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jan 2016 03:39:36 +0000 (UTC) Cc: 22466@debbugs.gnu.org To: Artur Malabarba Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 28 04:39:23 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aOdQT-00047N-Fw for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Jan 2016 04:39:17 +0100 Original-Received: from localhost ([::1]:53840 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOdQT-0001B9-0G for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Jan 2016 22:39:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40445) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOdPh-0008MN-NS for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 22:38:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOdPG-000840-JC for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 22:38:29 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50842) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOdPG-00083m-EI for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 22:38:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aOdPG-0005zp-8y for bug-gnu-emacs@gnu.org; Wed, 27 Jan 2016 22:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Jan 2016 03:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22466-submit@debbugs.gnu.org id=B22466.145395226423025 (code B ref 22466); Thu, 28 Jan 2016 03:38:02 +0000 Original-Received: (at 22466) by debbugs.gnu.org; 28 Jan 2016 03:37:44 +0000 Original-Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOdOx-0005zJ-QU for submit@debbugs.gnu.org; Wed, 27 Jan 2016 22:37:43 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:48567) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aOdOw-0005z7-EQ for 22466@debbugs.gnu.org; Wed, 27 Jan 2016 22:37:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aOdNh-0007AK-SP for 22466@debbugs.gnu.org; Wed, 27 Jan 2016 22:37:37 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aOdNh-0007AE-Kj; Wed, 27 Jan 2016 22:36:25 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2401 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aOdNg-0007Dp-UL; Wed, 27 Jan 2016 22:36:25 -0500 In-reply-to: <87bn86ojtw.fsf@gmail.com> (message from Artur Malabarba on Wed, 27 Jan 2016 20:20:43 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:112047 Archived-At: > From: Artur Malabarba > Cc: 22466@debbugs.gnu.org > Date: Wed, 27 Jan 2016 20:20:43 +0000 > > > Then it would make sense to find a way of switching a theme without > > changing the frame's background color, if that's possible (i.e. if the > > new theme keeps the same background color). If there's a function > > missing for that, I'd suggest to add one. > > How about just running that form only when necessary (i.e., only if the > disabled theme actually sets the frame `background-color')? Yes, something like that. Or maybe add a new switch-theme API that receives both the old and a new theme, and changes the background color only if the new theme sets a different one.