From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.bugs Subject: bug#22466: 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@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1453806262 32571 80.91.229.3 (26 Jan 2016 11:04:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Jan 2016 11:04:22 +0000 (UTC) To: 22466@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 26 12:04:11 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 1aO1Pv-0002v5-7i for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jan 2016 12:04:11 +0100 Original-Received: from localhost ([::1]:43142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1Pu-0000DA-KZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Jan 2016 06:04:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48055) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1Pq-0000Cz-Vt for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:04:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO1Pm-0004Xv-0Q for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:04:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48406) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1Pl-0004Xn-Sx for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:04:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aO1Pl-0001Jc-KQ for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Artur Malabarba Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Jan 2016 11:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22466 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14538061824967 (code B ref -1); Tue, 26 Jan 2016 11:04:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 26 Jan 2016 11:03:02 +0000 Original-Received: from localhost ([127.0.0.1]:36626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aO1On-0001Hw-P6 for submit@debbugs.gnu.org; Tue, 26 Jan 2016 06:03:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:56690) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aO1Ol-0001Hk-QK for submit@debbugs.gnu.org; Tue, 26 Jan 2016 06:03:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO1Of-0004ER-SW for submit@debbugs.gnu.org; Tue, 26 Jan 2016 06:02:54 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59398) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1Of-0004EN-Q3 for submit@debbugs.gnu.org; Tue, 26 Jan 2016 06:02:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1Oe-0007tq-Qo for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:02:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aO1OZ-0004Dd-RJ for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:02:52 -0500 Original-Received: from mail-qg0-x22e.google.com ([2607:f8b0:400d:c04::22e]:36790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aO1OZ-0004DY-Mi for bug-gnu-emacs@gnu.org; Tue, 26 Jan 2016 06:02:47 -0500 Original-Received: by mail-qg0-x22e.google.com with SMTP id e32so134568454qgf.3 for ; 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) Original-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 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Jan 2016 03:02:46 -0800 (PST) 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-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:111980 Archived-At: 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.