GNU bug report logs - #22466
25.0.50; disable-theme apparently forces a redisplay and causes a screen flash

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: minor; Reported by: Artur Malabarba <bruce.connor.am@HIDDEN>; merged with #20016; dated Tue, 26 Jan 2016 11:04:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 20016 22466. Request was from Mauro Aranda <maurooaranda@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 28 Jan 2016 03:37:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 27 22:37:44 2016
Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aOdOx-0005zJ-QU
	for submit <at> debbugs.gnu.org; Wed, 27 Jan 2016 22:37:43 -0500
Received: from eggs.gnu.org ([208.118.235.92]:48567)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aOdOw-0005z7-EQ
 for 22466 <at> debbugs.gnu.org; Wed, 27 Jan 2016 22:37:42 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aOdNh-0007AK-SP
 for 22466 <at> debbugs.gnu.org; Wed, 27 Jan 2016 22:37:37 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42602)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aOdNh-0007AE-Kj; Wed, 27 Jan 2016 22:36:25 -0500
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 <eliz@HIDDEN>)
 id 1aOdNg-0007Dp-UL; Wed, 27 Jan 2016 22:36:25 -0500
Date: Thu, 28 Jan 2016 05:36:58 +0200
Message-Id: <83egd2z86d.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Artur Malabarba <bruce.connor.am@HIDDEN>
In-reply-to: <87bn86ojtw.fsf@HIDDEN> (message from Artur Malabarba on Wed, 
 27 Jan 2016 20:20:43 +0000)
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <87io2gns3b.fsf@HIDDEN> <831t9414it.fsf@HIDDEN> <87bn86ojtw.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Artur Malabarba <bruce.connor.am@HIDDEN>
> Cc: 22466 <at> 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.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 27 Jan 2016 22:21:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jan 27 17:21:03 2016
Received: from localhost ([127.0.0.1]:38998 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aOYSV-0006xx-JD
	for submit <at> debbugs.gnu.org; Wed, 27 Jan 2016 17:21:03 -0500
Received: from mail-qg0-f42.google.com ([209.85.192.42]:34739)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aOYSU-0006xA-C7
 for 22466 <at> debbugs.gnu.org; Wed, 27 Jan 2016 17:21:02 -0500
Received: by mail-qg0-f42.google.com with SMTP id 6so19490728qgy.1
 for <22466 <at> debbugs.gnu.org>; Wed, 27 Jan 2016 14:21:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version:content-type;
 bh=LvYV0T284pZBtSEEcYiRg2HupklylUSlVGRG2H0B81Q=;
 b=kP4KnLU7Y5bzYTLF6YaYvw0m+F53vir6g42hsNzxncejnH6lLAwbER3DxiXE6B0Plk
 e0pi3uoQGnwGfP4ombunXzZsuK189/QPUYV/godixe3XAEw+i3MPGwOZa7/r1LQl/xCt
 4x6Wrmrd+4fyQ1qtFem2kGCR+otN1ZAZyhS2s4oEYWLCr9NYCcAVjjkDk9XLpgMzsal/
 AKB7/18aKXkuXW1JVDbt6wg514fGTsvxQ/AHE3tZ+wv+SnDVM+nquGj+YWiRVxAxSHAJ
 xR2H3J3SYY8dJTGSnZ56i8pc+UKRob0z8Tpz7Pq8AEpB9dAHpKAeCLTOCG6tmOkE5/8R
 uMJA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version:content-type;
 bh=LvYV0T284pZBtSEEcYiRg2HupklylUSlVGRG2H0B81Q=;
 b=YY2v1/FRTpLBdtkq0JWov5KafyDbUyUiPpC7e/APoeVUknffVLlXk2Ibi0JhupSF6j
 V7cXT7g/QmxwgSTm5PIGGjv7+eloITKhR9t0VnATvxBAkBlf4UOtYVgsRRSMqf/Jnk45
 9zc56+snULkEANv0zt+58Pji4EOgfMjs9MSGbx9LeIZ6JJDxyJqkG057BG8WSjZfrTx7
 Q3M4g+Hj2F+jV59HSE39d9cqU28JKWj1k1VD+DyedstD34+OkPgjnd74hBghaxmR68EA
 GgmTpp9RcVnR42lREBpVsQd4GF76mmVptslF68ChjRzNsaTMtQxtM6dsd6+nUn6EITwp
 9I9w==
X-Gm-Message-State: AG10YORzysf2s2eDZRztvcszrqbHUZC38zJSggMhdG447WxgXPnF+omEu3+XLXlBlcOLOg==
X-Received: by 10.140.171.5 with SMTP id r5mr40730308qhr.51.1453933257031;
 Wed, 27 Jan 2016 14:20:57 -0800 (PST)
Received: from Gandalf-Linux.gmail.com ([201.37.162.188])
 by smtp.gmail.com with ESMTPSA id v70sm2557583qkl.15.2016.01.27.14.20.55
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 27 Jan 2016 14:20:56 -0800 (PST)
From: Artur Malabarba <bruce.connor.am@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <87io2gns3b.fsf@HIDDEN> <831t9414it.fsf@HIDDEN>
Date: Wed, 27 Jan 2016 20:20:43 +0000
In-Reply-To: <831t9414it.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 26 Jan
 2016 22:15:22 +0200")
Message-ID: <87bn86ojtw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> So disable-theme actually means go back to the default theme?  If so,
> when someone changes a theme, they don't really need to call
> disable-theme, right?  They could just call load-theme with the new
> theme as an argument?

I'm not sure why you reach this conclusion. `disable-theme' is meant to
disable a single theme. If I have theme X enabled, then (disable-theme 'X) is
supposed to restore the default Emacs appearance. If have two themes enabled (X
and Y), then (disable-theme 'X) is supposed to give me just the
appearance of theme Y.

Right now, that's indeed what it does. But if I remove the form (as you
asked) then it fails to do the above (it doesn't remove the background
set by the disabled theme).

> 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')?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 23:03:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 18:03:10 2016
Received: from localhost ([127.0.0.1]:37966 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aOCdh-0003in-Tn
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 18:03:10 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:19584)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <drew.adams@HIDDEN>) id 1aOCdg-0003ia-GO
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 18:03:08 -0500
Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 u0QN32br027364
 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Tue, 26 Jan 2016 23:03:02 GMT
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0QN2xAW022512
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Tue, 26 Jan 2016 23:03:01 GMT
Received: from abhmp0009.oracle.com (abhmp0009.oracle.com [141.146.116.15])
 by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u0QN2xT5005475;
 Tue, 26 Jan 2016 23:02:59 GMT
MIME-Version: 1.0
Message-ID: <0af8586e-9886-4684-9a4d-8d82b99f8f8e@default>
Date: Tue, 26 Jan 2016 15:02:57 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Michael Albinus <michael.albinus@HIDDEN>
Subject: RE: bug#22466: 25.0.50; disable-theme apparently forces a redisplay
 and causes a screen flash
References: <<87y4bcsogq.fsf@HIDDEN>> <<83powo1j71.fsf@HIDDEN>
 <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>	<83d1so1df3.fsf@HIDDEN>>
 <<87y4bc89pt.fsf@HIDDEN>> <<834me01881.fsf@HIDDEN>>
In-Reply-To: <<834me01881.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9  (901082) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0021.oracle.com [156.151.31.71]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN, drew.adams@HIDDEN
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: -2.3 (--)

> > On my todo list there is also writing tramp-theme.el. Something, which
> > makes it obvious that you are editing a remote file, or not. Even more
> > important: you are editing a file as root, or not.
> >
> > This could fall into the category of enabling-disabling the theme more
> > often than just at the start of your session.
>=20
> I hope that theme won't change my frame's background color ;-)

I heard that Michael is working on a special background color
that will take effect only when the user is Eli Zaretskii.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 20:15:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 15:15:03 2016
Received: from localhost ([127.0.0.1]:37937 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aOA11-00082L-CU
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 15:15:03 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60652)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aOA10-00081c-2J
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 15:15:02 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aOA0r-0007Dv-My
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 15:14:56 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42907)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aOA0r-0007Dn-J9; Tue, 26 Jan 2016 15:14:53 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1591
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aOA0q-0002HB-SS; Tue, 26 Jan 2016 15:14:53 -0500
Date: Tue, 26 Jan 2016 22:15:22 +0200
Message-Id: <831t9414it.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Artur Malabarba <bruce.connor.am@HIDDEN>
In-reply-to: <87io2gns3b.fsf@HIDDEN> (message from Artur Malabarba on Tue, 
 26 Jan 2016 17:25:36 +0000)
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <87io2gns3b.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Artur Malabarba <bruce.connor.am@HIDDEN>
> Cc: 22466 <at> debbugs.gnu.org
> Date: Tue, 26 Jan 2016 17:25:36 +0000
> 
> >>     (set-frame-parameter frame 'background-color
> >>     			     (custom--frame-color-default
> >>     			      frame :background "background" "Background"
> >>     			      "unspecified-bg" "white"))
> >> 
> >> I'm not saying this form is wrong. I'm just pointing to where it happens.
> >
> > What happens if you remove that from disable-theme?
> 
> Then there's no flashing, but then if I simply disable the theme
> (without enabling a new one) I'm left with theme's background.

So disable-theme actually means go back to the default theme?  If so,
when someone changes a theme, they don't really need to call
disable-theme, right?  They could just call load-theme with the new
theme as an argument?

> I never change my main color theme, but I always have a second theme
> enabled that only affects the mode-line. This second theme is changed
> occasionally and it always causes a flash (even though the theme has
> nothing to do with the background).
> 
> Besides, custom themes are not just for faces. This also came up because
> someone is writing a package that simultaneously toggles between
> different values for a set of variables (called a context) using
> custom-themes. That's something that's designed to be used a couple
> times a day.

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 19:55:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 14:55:45 2016
Received: from localhost ([127.0.0.1]:37933 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO9iK-0007Yr-PL
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 14:55:44 -0500
Received: from mail-qg0-f52.google.com ([209.85.192.52]:36709)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO9iJ-0007Ye-Oh
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 14:55:44 -0500
Received: by mail-qg0-f52.google.com with SMTP id e32so149169257qgf.3
 for <22466 <at> debbugs.gnu.org>; Tue, 26 Jan 2016 11:55:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:cc:subject:date:references:message-id:mime-version
 :content-type; bh=0gKk7pHqt3LV2fHaDwi/iRIu2O39avqVNMwLGGxzYco=;
 b=ZJNQS4z5dvCws5gzvQsVk4SHDOh8NhshK8g/oEiuPTu6pHJ3Q8N2adMRVsRbffDl9K
 HuGWSjXuC13woV6swCQcIxO4rpSrn3nEuvPfxtpLers7eSnCd1TUAN6TCVb3rFHtAaxc
 iHHM65priTq4YjXWaC3Py0Nsz+aSBnd664xWfbBRbjK5Sv5WpSo2mrIF0dt/BaeSiOYu
 1QN1wP9UdIbjfgEK02RqlmtT/jab9ZvLz2tQTmWSQpRIozauaqI5R5RdhpX5Bu0ZBmWU
 4a/IVQVOLfHYcDpNKUjKctFpegh9b4hkW2BH7lO3uzfD62QUQev+OcC4pkCV5D7TzAJH
 OACw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:cc:subject:date:references
 :message-id:mime-version:content-type;
 bh=0gKk7pHqt3LV2fHaDwi/iRIu2O39avqVNMwLGGxzYco=;
 b=UQ/4kJ+U89bH1BYeV9yuAz/9p6ONsdpiyHC0UP0i4NMaHRQo0rOquJ/QTkvPd/gUW9
 uJ3qs8Ocg99g/T/nUusx3Zrp1uTYWwL/F+KsMZCmpYYl1cRhZnyuGlp4NZ+AVDhXNQgK
 yGQ+KuVrWOOMDrk/27f0RuRm8LL1UygEIg0Xb16iAJqPhE7tBTKeNJKA0GrHJJs770wf
 RWxozDoFraiGmvfWhfO8/NH0JCbL8tJjzZwYfVxB5hP523pCr/ShJhMsZAnsWgQeNkjG
 u/sNhePwKkGWv0xj9qF6CdSFCRGUqHwLl0K6uTJgjn67IDDzZDTBcD4w0OAsc5FD+lVU
 t+jA==
X-Gm-Message-State: AG10YOQI185jxrj3So4NkTcuzxvQvypABXiYHesfRP6cXLdzfh+vXW6+Lw5keNm3+CAAtA==
X-Received: by 10.140.42.139 with SMTP id c11mr30768626qga.5.1453838138143;
 Tue, 26 Jan 2016 11:55:38 -0800 (PST)
Received: from Gandalf-Linux.gmail.com ([201.37.162.188])
 by smtp.gmail.com with ESMTPSA id h99sm1145544qge.7.2016.01.26.11.55.36
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 26 Jan 2016 11:55:37 -0800 (PST)
From: Artur Malabarba <bruce.connor.am@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
Date: Tue, 26 Jan 2016 17:25:36 +0000
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
Message-ID: <87io2gns3b.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> It's not redisplay that does this.  It's the fact that disable-theme
> changes the frame's background color, and when that happens, we
> immediately clear the frame using the new background color, as part of
> the modify-frame-parameters call.
>
> Redisplay only handles the portions of display where there's text and
> other decorations that we manage.  Clearing the frame with the new
> background color is not redisplay's job.

Thanks, that's good to know.

>>     (set-frame-parameter frame 'background-color
>>     			     (custom--frame-color-default
>>     			      frame :background "background" "Background"
>>     			      "unspecified-bg" "white"))
>> 
>> I'm not saying this form is wrong. I'm just pointing to where it happens.
>
> What happens if you remove that from disable-theme?

Then there's no flashing, but then if I simply disable the theme
(without enabling a new one) I'm left with theme's background.

> (I don't really understand why it has to specify "white".)

I guess it's meant to reset the face to the default. Although, I don't
see why this is explicitly necessary for the default
background/foreground colors, but isn't necessary for other faces.

> Anyway, how come you get to doing this so often it hurts your eyes?
> Aren't people setting their beloved theme once when the session
> starts, and then never change it?

I never change my main color theme, but I always have a second theme
enabled that only affects the mode-line. This second theme is changed
occasionally and it always causes a flash (even though the theme has
nothing to do with the background).

Besides, custom themes are not just for faces. This also came up because
someone is writing a package that simultaneously toggles between
different values for a set of variables (called a context) using
custom-themes. That's something that's designed to be used a couple
times a day.

Anyway, it's not a huge defficiency and it's not worth any large
efforts. I brought it up because I thought there was an eager redisplay
happening somewhere and that might point to a deeper bug, but you've
clearly explained that's not the case. :-)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 19:31:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 14:31:25 2016
Received: from localhost ([127.0.0.1]:37927 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO9Km-0006zO-QZ
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 14:31:24 -0500
Received: from mout.gmx.net ([212.227.15.15]:49646)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <michael.albinus@HIDDEN>) id 1aO9Kl-0006zB-Fx
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 14:31:23 -0500
Received: from detlef.gmx.de ([79.195.30.160]) by mail.gmx.com (mrgmx001) with
 ESMTPSA (Nemesis) id 0Me8di-1ake2J16Q2-00Pv63;
 Tue, 26 Jan 2016 20:31:13 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>
 <83d1so1df3.fsf@HIDDEN> <87y4bc89pt.fsf@HIDDEN>
 <834me01881.fsf@HIDDEN>
Date: Tue, 26 Jan 2016 20:31:10 +0100
In-Reply-To: <834me01881.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 26 Jan
 2016 20:55:26 +0200")
Message-ID: <87twm087ep.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:7EbELqDjChnG4xHcecq8K8kWugAZsMr1jZno4Sv5wF9O8OHnOXf
 v7vVVQPw2vd+SvgYxmm6jAJ12W8T4ssTJvthw2qpWjazE66pAlzh8w3aFmoiHC1TngjjS90
 dNp0OgdSbuIMyYclYeKY8Z6B+XG+KDuA2k7DWdHypU+dY1F29BMsvH/KLJterduTgsirGlV
 wcUztSofSqocuESpVbh/Q==
X-UI-Out-Filterresults: notjunk:1;V01:K0:hyLFLIad4nw=:UJNkTUQ/s0MbDF2Z6ObSWL
 WTD+wygwgGvVhfpOjaVmFTpt5HCwOqB3tXynxYmEHuhbYjwRxy1T42qyQxQsaOHTftMLRWWaj
 +VxOarPPJlX7ePSu0OH9GxRQBjefN2YmdXD+IYRE1l/NQpUj1DWZn7hn8w94K0OIh/A6Uvlkz
 U4HNO9HPr6vlHp0MVvGyCYMo0AjT//n/Vp0i3HlqmLZqPlF4HEpzrUpo7p59SnufVsIRr4os7
 GEs5Ksm1daSDrg9HOv9RjpUxSfdpzsARn6aKq9YmAUpv5LEIWqaJef7OhiSnNnEaXz9Dv0dPX
 NGj53v+R3y2SS7F4fByP4W6+XFdaKnjAL1rUaRI9IsYXEoo7FPsFNkz2x0kqlKt6NZxsM8Ti2
 JoLDHr9nMvPXNuDtG+mimX460/9327GL+2BlQVvKLcMGpLAkPj0EgGGY/laIMxCdkJ5fhMui+
 LIvyFzFezyCMmZxIjB0OxRE2xG4GJThQZfu/b8tA0DfziaVXS4kfRJzpzqJ/z4a0UPhZLRc/X
 GQWZI8YOsFDsf/hu3TWt38IpOsAXtoKMullZRqznEZsIKlFBjsXSZU/fP2nSfrlZTnqRZuV48
 jQdtyWqjII/Fky1hGh8yx74ZxcfrCoBWVNX3rCeSLNIa0AD9EbLkt66AhntlkX/HEzaxiAOSp
 2/LXSnRUjzyGqguHfSBv0/TzMHAp9Bt6nEnxPBE+yhEmoqTqE+TFTSgvhSrbUVwAHOvR/BQhP
 34gesJaEKveNhxOo2c70fFsi9nVqiclTkiOv4HKPKVWmYRkcozWMhouHlVxBWZNkB2DE55rYe
 cs5hvX6
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN, drew.adams@HIDDEN
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: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> I hope that theme won't change my frame's background color ;-)

Don't know yet. What about blinking alarm red, in case you are root? :-)
The screen flash, as discussed in this bug, would be a feature then.

Another option would be white foreground / white background. For
security reasons. :-)

Hmm. Maybe I let you customize it yourself ...

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 18:55:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 13:55:10 2016
Received: from localhost ([127.0.0.1]:37918 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO8li-00065e-KB
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 13:55:10 -0500
Received: from eggs.gnu.org ([208.118.235.92]:40438)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aO8lg-00065S-1B
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 13:55:08 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aO8la-0003pf-C2
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 13:55:03 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_20,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41762)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aO8lX-0003oj-4D; Tue, 26 Jan 2016 13:54:59 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1499
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aO8lW-0003Go-8M; Tue, 26 Jan 2016 13:54:58 -0500
Date: Tue, 26 Jan 2016 20:55:26 +0200
Message-Id: <834me01881.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Michael Albinus <michael.albinus@HIDDEN>
In-reply-to: <87y4bc89pt.fsf@HIDDEN> (message from Michael Albinus on Tue, 26
 Jan 2016 19:41:18 +0100)
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>
 <83d1so1df3.fsf@HIDDEN> <87y4bc89pt.fsf@HIDDEN>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN, drew.adams@HIDDEN
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>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Michael Albinus <michael.albinus@HIDDEN>
> Cc: Drew Adams <drew.adams@HIDDEN>,  22466 <at> debbugs.gnu.org,  bruce.connor.am@HIDDEN
> Date: Tue, 26 Jan 2016 19:41:18 +0100
> 
> On my todo list there is also writing tramp-theme.el. Something, which
> makes it obvious that you are editing a remote file, or not. Even more
> important: you are editing a file as root, or not.
> 
> This could fall into the category of enabling-disabling the theme more
> often than just at the start of your session.

I hope that theme won't change my frame's background color ;-)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 18:41:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 13:41:32 2016
Received: from localhost ([127.0.0.1]:37897 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO8YW-0005jo-Er
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 13:41:32 -0500
Received: from mout.gmx.net ([212.227.17.21]:53691)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <michael.albinus@HIDDEN>) id 1aO8YV-0005jb-79
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 13:41:31 -0500
Received: from detlef.gmx.de ([79.195.30.160]) by mail.gmx.com (mrgmx102) with
 ESMTPSA (Nemesis) id 0MZOan-1agcCo4B13-00LGwy;
 Tue, 26 Jan 2016 19:41:20 +0100
From: Michael Albinus <michael.albinus@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>
 <83d1so1df3.fsf@HIDDEN>
Date: Tue, 26 Jan 2016 19:41:18 +0100
In-Reply-To: <83d1so1df3.fsf@HIDDEN> (Eli Zaretskii's message of "Tue, 26 Jan
 2016 19:03:12 +0200")
Message-ID: <87y4bc89pt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K0:XtAXB/enZmAX5cCejQML6ifLuU7dKEX8vHuI+dEqo//6caeTYhh
 jBXL9hX5KBNHGKALxAdPqdqd3u0Zk/2LxHI2BXyg1XUS4gvJJCP3hlRQB2nVYYTybHTiSJX
 xBl+0ROrlP4ooQagH0R/mJaFYWs0ou1Lfl40Q5gE1GvhI+nMTGDl7jJytuDBlFTVW5zKNiG
 nVZYkmN4ocs0JUnhwCZrA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:vIl/ryvjgHU=:mFLPkjR3BSc18tuL+em/wU
 hMKxIQfK9DpEe/fbPTZHFYKb/uMpsv2d6f8mkscvx80qDbCcactpLktghM+3/olktBinOYHSF
 FVejtcdxwD9GjfC1Sf92VVV36Nu4QRkmWVvgoPKZOm9i7Aa4046SoBrv4uujk76nTg8dLo09B
 fC+Isy8TQiuzkWdeAhknaHbrKx9ShVCGnJDPQT+yxBY1XDb17FdOeiqK9nPMKRfQRfwED41nD
 r0/m++YZ2JUJIYykKBYyPS2ts8XfZWkwe4Y8DoKT5grqc/gflJlKLotfHpwmc+SCUgxzoe8Bz
 qauk8a1oeN2/I2e4mXxImID8JkcTJB6v+GAWGpKoLNoZ6hD4YADY+pbvrwTNMEKIbKeBpIcgm
 RXJ7r9hK+rWbIp67C33loRsf+pPIDu1Ew0qR4sM/U1u1ND3wdF43vNEiu8korL5cthOTZxk3K
 fLOoYD67E7ysEJhrUP7jrIdsJ+6GFtc7NnftcSzMacAiIaq7sfyi7+kzfjiqJhd0aECQ0L10E
 oRGyq8TIvZ9hgm90k+Ah6EjwxL+ECvv/fDCy57uFv2DlRoIVWUDg9XN0ybqVZK2/tEjRg7dRx
 UqA66QU/DwJjiH7UFl6mnDe7cd3UMFcsu79Z0oU4jvEo/T03LIlcU+3VwviPzMK5v5k0M1lJE
 yRFLMPwn8Iab+2OCOCmbleyZzYQVRf47fIxOnLCHjnsjkbSZchDV4Vk5e2AQXzyz7IRuAFLFU
 8p4J1T3ayY4DfQcc/LOIm7ddQvFWXqB1YGXDfmBzkcooLzF22VAEgKLVEwAxCsJK1mZvQXyYT
 yJ/GYGs
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN,
 Drew Adams <drew.adams@HIDDEN>
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: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Tue, 26 Jan 2016 08:36:56 -0800 (PST)
>> From: Drew Adams <drew.adams@HIDDEN>
>> Cc: 22466 <at> debbugs.gnu.org
>> 
>> > Anyway, how come you get to doing this so often it hurts your eyes?
>> > Aren't people setting their beloved theme once when the session
>> > starts, and then never change it?
>> 
>> I can't speak for the OP, but no, users can well want to cycle
>> through a set of themes before choosing one.
>
> Yes, once.  Until they choose that one.

On my todo list there is also writing tramp-theme.el. Something, which
makes it obvious that you are editing a remote file, or not. Even more
important: you are editing a file as root, or not.

This could fall into the category of enabling-disabling the theme more
often than just at the start of your session.

Best regards, Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 17:07:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 12:07:26 2016
Received: from localhost ([127.0.0.1]:37860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO75S-0003P3-EX
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 12:07:26 -0500
Received: from aserp1040.oracle.com ([141.146.126.69]:34081)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <drew.adams@HIDDEN>) id 1aO75R-0003Oq-6O
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 12:07:25 -0500
Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233])
 by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 u0QH7Im8007862
 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK);
 Tue, 26 Jan 2016 17:07:19 GMT
Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236])
 by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u0QH7Ipp010175
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Tue, 26 Jan 2016 17:07:18 GMT
Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])
 by aserv0122.oracle.com (8.13.8/8.13.8) with ESMTP id u0QH7Is9014156;
 Tue, 26 Jan 2016 17:07:18 GMT
MIME-Version: 1.0
Message-ID: <36e71def-75ba-4cb6-be82-2546d21403d7@default>
Date: Tue, 26 Jan 2016 09:07:17 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: RE: bug#22466: 25.0.50; disable-theme apparently forces a redisplay
 and causes a screen flash
References: <<87y4bcsogq.fsf@HIDDEN>> <<83powo1j71.fsf@HIDDEN>>
 <<1bbf7218-bd5b-4618-822c-cd75884a81ee@default>> <<83d1so1df3.fsf@HIDDEN>>
In-Reply-To: <<83d1so1df3.fsf@HIDDEN>>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9  (901082) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
X-Source-IP: aserv0021.oracle.com [141.146.126.233]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN
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: -2.3 (--)

> > > Anyway, how come you get to doing this so often it hurts your eyes?
> > > Aren't people setting their beloved theme once when the session
> > > starts, and then never change it?
> >
> > I can't speak for the OP, but no, users can well want to cycle
> > through a set of themes before choosing one.
>=20
> Yes, once.  Until they choose that one.

But they might do this over and over, in different contexts.
Anyway, I've made the point.  Up to you whether it matters.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 17:02:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 12:02:58 2016
Received: from localhost ([127.0.0.1]:37856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO717-0003IO-S6
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 12:02:58 -0500
Received: from eggs.gnu.org ([208.118.235.92]:60055)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aO715-0003IA-J0
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 12:02:55 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aO70v-0001Ct-Sj
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 12:02:50 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39688)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aO70v-0001Cp-PT; Tue, 26 Jan 2016 12:02:45 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1424
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aO70u-0000NF-6a; Tue, 26 Jan 2016 12:02:44 -0500
Date: Tue, 26 Jan 2016 19:03:12 +0200
Message-Id: <83d1so1df3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Drew Adams <drew.adams@HIDDEN>
In-reply-to: <1bbf7218-bd5b-4618-822c-cd75884a81ee@default> (message from Drew
 Adams on Tue, 26 Jan 2016 08:36:56 -0800 (PST))
Subject: Re: bug#22466: 25.0.50; disable-theme apparently forces a redisplay
 and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
 <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org, bruce.connor.am@HIDDEN
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>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> Date: Tue, 26 Jan 2016 08:36:56 -0800 (PST)
> From: Drew Adams <drew.adams@HIDDEN>
> Cc: 22466 <at> debbugs.gnu.org
> 
> > Anyway, how come you get to doing this so often it hurts your eyes?
> > Aren't people setting their beloved theme once when the session
> > starts, and then never change it?
> 
> I can't speak for the OP, but no, users can well want to cycle
> through a set of themes before choosing one.

Yes, once.  Until they choose that one.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 16:37:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 11:37:06 2016
Received: from localhost ([127.0.0.1]:37844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO6c6-0002gs-9f
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 11:37:06 -0500
Received: from userp1040.oracle.com ([156.151.31.81]:35414)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <drew.adams@HIDDEN>) id 1aO6c4-0002gO-Jc
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 11:37:04 -0500
Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74])
 by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id
 u0QGawWb031605
 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK);
 Tue, 26 Jan 2016 16:36:58 GMT
Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235])
 by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u0QGavJN001459
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
 Tue, 26 Jan 2016 16:36:58 GMT
Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12])
 by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u0QGav1x020556;
 Tue, 26 Jan 2016 16:36:57 GMT
MIME-Version: 1.0
Message-ID: <1bbf7218-bd5b-4618-822c-cd75884a81ee@default>
Date: Tue, 26 Jan 2016 08:36:56 -0800 (PST)
From: Drew Adams <drew.adams@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, Artur Malabarba <bruce.connor.am@HIDDEN>
Subject: RE: bug#22466: 25.0.50; disable-theme apparently forces a redisplay
 and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN> <83powo1j71.fsf@HIDDEN>
In-Reply-To: <83powo1j71.fsf@HIDDEN>
X-Priority: 3
X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9  (901082) [OL
 12.0.6691.5000 (x86)]
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Source-IP: userv0022.oracle.com [156.151.31.74]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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: -2.3 (--)

> Anyway, how come you get to doing this so often it hurts your eyes?
> Aren't people setting their beloved theme once when the session
> starts, and then never change it?

I can't speak for the OP, but no, users can well want to cycle
through a set of themes before choosing one.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at 22466) by debbugs.gnu.org; 26 Jan 2016 14:58:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 09:58:22 2016
Received: from localhost ([127.0.0.1]:37765 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO54Y-0000Fz-79
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 09:58:22 -0500
Received: from eggs.gnu.org ([208.118.235.92]:37430)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <eliz@HIDDEN>) id 1aO54X-0000Fn-4h
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 09:58:21 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <eliz@HIDDEN>) id 1aO54B-0001uh-VK
 for 22466 <at> debbugs.gnu.org; Tue, 26 Jan 2016 09:58:15 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD
 autolearn=disabled version=3.3.2
Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37573)
 by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <eliz@HIDDEN>)
 id 1aO54B-0001ua-Ro; Tue, 26 Jan 2016 09:57:59 -0500
Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1334
 helo=HOME-C4E4A596F7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1aO54A-00018J-Fw; Tue, 26 Jan 2016 09:57:59 -0500
Date: Tue, 26 Jan 2016 16:58:26 +0200
Message-Id: <83powo1j71.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Artur Malabarba <bruce.connor.am@HIDDEN>
In-reply-to: <87y4bcsogq.fsf@HIDDEN> (message from Artur Malabarba on Tue, 
 26 Jan 2016 09:02:29 +0000)
Subject: Re: bug#22466: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
References: <87y4bcsogq.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From: 2001:4830:134:3::e
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: 22466
Cc: 22466 <at> debbugs.gnu.org
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>
Reply-To: Eli Zaretskii <eliz@HIDDEN>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

> From: Artur Malabarba <bruce.connor.am@HIDDEN>
> Date: Tue, 26 Jan 2016 09:02:29 +0000
> 
> 
> 1. From “emacs -Q” evaluate `(load-theme 'tango-dark)'. Any other theme
> with a dark background will also do.
> 
> 2. Then, notice how every time you evaluate the following code, the
> screen flashes white for a moment, and then resumes the exact same
> appearance.
> 
>     (progn (disable-theme 'tango-dark)
>            (load-theme 'tango-dark))
> 
> Of course, “resuming the same appearance” is expected, the problem is
> that the white flash is distracting, unnecessary, and eye-hurting.
> 
> I understand _why_ it happens (after `disable-theme' the background is
> actually white), but I don't see why it _has_ to happen. That is, why
> does Emacs redisplay the frame in the middle of lisp evaluation, instead
> of waiting until the end of the command loop?

It's not redisplay that does this.  It's the fact that disable-theme
changes the frame's background color, and when that happens, we
immediately clear the frame using the new background color, as part of
the modify-frame-parameters call.

Redisplay only handles the portions of display where there's text and
other decorations that we manage.  Clearing the frame with the new
background color is not redisplay's job.

> More importantly, is this redisplay (or “partial redisplay”, or whatever
> it is) be avoided, so Emacs doesn't flash white on my pretty little eyes?
> 
> -----
> 
> ps: In case it helps, investigation shows that this is caused by this
> form inside `disable-theme':
> 
>     (set-frame-parameter frame 'background-color
>     			     (custom--frame-color-default
>     			      frame :background "background" "Background"
>     			      "unspecified-bg" "white"))
> 
> I'm not saying this form is wrong. I'm just pointing to where it happens.

What happens if you remove that from disable-theme?  (I don't really
understand why it has to specify "white".)

Anyway, how come you get to doing this so often it hurts your eyes?
Aren't people setting their beloved theme once when the session
starts, and then never change it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#22466; Package emacs. Full text available.

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


Received: (at submit) by debbugs.gnu.org; 26 Jan 2016 11:03:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 26 06:03:02 2016
Received: from localhost ([127.0.0.1]:36626 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aO1On-0001Hw-P6
	for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 06:03:02 -0500
Received: from eggs.gnu.org ([208.118.235.92]:56690)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1Ol-0001Hk-QK
 for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 06:03:00 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1Of-0004ER-SW
 for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 06:02:54 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:59398)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1Of-0004EN-Q3
 for submit <at> debbugs.gnu.org; Tue, 26 Jan 2016 06:02:53 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:47647)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1Oe-0007tq-Qo
 for bug-gnu-emacs@HIDDEN; Tue, 26 Jan 2016 06:02:53 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1OZ-0004Dd-RJ
 for bug-gnu-emacs@HIDDEN; Tue, 26 Jan 2016 06:02:52 -0500
Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]:36790)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <bruce.connor.am@HIDDEN>) id 1aO1OZ-0004DY-Mi
 for bug-gnu-emacs@HIDDEN; Tue, 26 Jan 2016 06:02:47 -0500
Received: by mail-qg0-x22e.google.com with SMTP id e32so134568454qgf.3
 for <bug-gnu-emacs@HIDDEN>; Tue, 26 Jan 2016 03:02:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:subject:date:message-id:mime-version:content-type
 :content-transfer-encoding;
 bh=m4LNZuqWcRY3tUQJIVdPaGCgvZaiTPV1zR3Ar1/i/aA=;
 b=o8t3jEDV0S2ilIZkP5sfDsbdUFHcV8LF9ph6xu27dzL0NAos0n9phtKFgyk1FMRlYk
 T9+ZlNhQVu9SlxfuIK9TpvhPjIzzDDRCACez6kYJagAhaDOmq+VrVrh0SIyoA136j9xA
 5P5yqfnfzPClF1GLzQvCd4GoAbJFdWlDqjfmrmldQg22evINO+L8QS+joLrdxtRLWYho
 hwKSzchD2mVmYW7SlMXd3Ie0FpoLkC5f/C4TfUCPfhspLKFflLkUre1jSzB1+UrYrLdX
 Feb7vFcVqmak7ntagVIj7Cr5WMjfshb09pbD5J50ooUYzLJl7CVafoqZQ7xp5tzpT7jD
 YcZA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:subject:date:message-id
 :mime-version:content-type:content-transfer-encoding;
 bh=m4LNZuqWcRY3tUQJIVdPaGCgvZaiTPV1zR3Ar1/i/aA=;
 b=M8g/CpUHI46AbQTcI/40D5/yrLBGYLrHuPbyD2Zr/Ts/oVs6XagxbLYJtbKw84q2CH
 k1qOKa/Y9ZQYQENC8IgOJ1Am8gSJpG7ifDptvBzjxcxSGHI2ShUpEViV5Ez5TXbxdUmO
 iQ7jrLORDd4wtFi6s5inR3+jbTPphd6IzcyWY9bjRj+lMI8D2xVQYze3urgtempspgpV
 5gRrKyPoIzW8SvMvoscLwbbTCKl2w8pkNwV9pLQPpG84gJW2z4PII7ddEIRoShxihFdD
 ATfesajeuYTa0U6WG+B9nv+YD2aZbbx+TbT5pDpIy3R3ECXpzCoBAbco05RifYpChB5J
 DclA==
X-Gm-Message-State: AG10YOSuHoDjRwLbivmV3YnwFpx19iBAT8vUFRlNhMZJcN3LK0P1JQakGYu45vQk8aXotQ==
X-Received: by 10.55.81.3 with SMTP id f3mr27646822qkb.35.1453806167031;
 Tue, 26 Jan 2016 03:02:47 -0800 (PST)
Received: from Gandalf-Linux.gmail.com ([201.37.162.188])
 by smtp.gmail.com with ESMTPSA id t187sm267684qht.39.2016.01.26.03.02.45
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 26 Jan 2016 03:02:46 -0800 (PST)
From: Artur Malabarba <bruce.connor.am@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 25.0.50;
 disable-theme apparently forces a redisplay and causes a screen flash
Date: Tue, 26 Jan 2016 09:02:29 +0000
Message-ID: <87y4bcsogq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
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: -4.0 (----)


1. From =E2=80=9Cemacs -Q=E2=80=9D evaluate `(load-theme 'tango-dark)'. Any=
 other theme
with a dark background will also do.

2. Then, notice how every time you evaluate the following code, the
screen flashes white for a moment, and then resumes the exact same
appearance.

    (progn (disable-theme 'tango-dark)
           (load-theme 'tango-dark))

Of course, =E2=80=9Cresuming the same appearance=E2=80=9D is expected, the =
problem is
that the white flash is distracting, unnecessary, and eye-hurting.

I understand _why_ it happens (after `disable-theme' the background is
actually white), but I don't see why it _has_ to happen. That is, why
does Emacs redisplay the frame in the middle of lisp evaluation, instead
of waiting until the end of the command loop?

More importantly, is this redisplay (or =E2=80=9Cpartial redisplay=E2=80=9D=
, or whatever
it is) be avoided, so Emacs doesn't flash white on my pretty little eyes?

-----

ps: In case it helps, investigation shows that this is caused by this
form inside `disable-theme':

    (set-frame-parameter frame 'background-color
    			     (custom--frame-color-default
    			      frame :background "background" "Background"
    			      "unspecified-bg" "white"))

I'm not saying this form is wrong. I'm just pointing to where it happens.




Acknowledgement sent to Artur Malabarba <bruce.connor.am@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#22466; 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: Thu, 5 Nov 2020 22:15:02 UTC

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