From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#19721: 25.0.50; Mode-line not redrawn with expose events Date: Sun, 01 Feb 2015 17:30:06 +0100 Message-ID: <54CE548E.5020605@gmx.at> References: <83r3ubjk5q.fsf@gnu.org> <83lhkjjhsp.fsf@gnu.org> <54CDE912.7070209@gmx.at> <83pp9tiqm6.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1422808286 9583 80.91.229.3 (1 Feb 2015 16:31:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 16:31:26 +0000 (UTC) Cc: 19721@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 17:31:22 2015 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 1YHxQe-0000eG-4p for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 17:31:20 +0100 Original-Received: from localhost ([::1]:51023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQd-00051r-II for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 11:31:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQS-0004ou-Ia for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 11:31:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHxQM-0008MT-JG for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 11:31:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHxQM-0008ME-DP for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 11:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHxQL-0008F7-Jn for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 11:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Feb 2015 16:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19721 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19721-submit@debbugs.gnu.org id=B19721.142280823331644 (code B ref 19721); Sun, 01 Feb 2015 16:31:01 +0000 Original-Received: (at 19721) by debbugs.gnu.org; 1 Feb 2015 16:30:33 +0000 Original-Received: from localhost ([127.0.0.1]:59769 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHxPt-0008EK-Gj for submit@debbugs.gnu.org; Sun, 01 Feb 2015 11:30:33 -0500 Original-Received: from mout.gmx.net ([212.227.15.19]:53410) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHxPr-0008E7-64 for 19721@debbugs.gnu.org; Sun, 01 Feb 2015 11:30:32 -0500 Original-Received: from [88.117.59.199] ([88.117.59.199]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0MVvB2-1YBJat0avQ-00X4lA; Sun, 01 Feb 2015 17:30:19 +0100 In-Reply-To: <83pp9tiqm6.fsf@gnu.org> X-Provags-ID: V03:K0:tdNH4scpimmarj6LQPpb42NUM5rSC6ZnT9KZS0ElR9OwgXaAHT0 Xvz5Vg6hL+phFc5gA/WNAI2Mf9dBbtHx7goigNAqNy+fiJr78Pa9QejDhhAxiQMbtwmPnQj v0I51bAXOgzSkRS3tz58xtf+k+iEjqB8MyvVBaVA30ec7V2G63Y9/MXEIDp7vFth9FZF623 TqI96tYkaxEgass8XuNhQ== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:98950 Archived-At: > I didn't try your suggestion, but (a) it would force redrawing the > mode line even if that's not needed, just because a window got > selected, Yes. We could be a bit more careful and do it only when norecord is nil. My point was just to know whether the bug would disappear. > and (b) there's a tricky condition near the beginning of > redisplay_window that would bypass redisplaying a window, under some > conditions, even if its update_mode_line flag was set (my last patch > attempts at fixing that). So if he applies your code and mine we'd probably find out more. I was exactly once able to trigger his initial scenario here on Windows with both upper modelines completely disappearing but was not able to repeat that experience after that. > So I'm not sure this is the right solution. The situation described > in this report is quite unique, in that the face used for the active > mode line causes the window glyph matrices to be resized each time a > window becomes non-selected one. Could you optimize that away (reserving one line more than needed)? A naive question, probably ... > It is because of this resizing that > the mode-line row of the current matrix becomes disabled. So you mean that we have to update the mode lines of both - the selected and the deselected window? martin