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#19721: 25.0.50; Mode-line not redrawn with expose events Date: Sun, 01 Feb 2015 19:27:42 +0200 Message-ID: <83a90xiltd.fsf@gnu.org> References: <83r3ubjk5q.fsf@gnu.org> <83lhkjjhsp.fsf@gnu.org> <54CDE912.7070209@gmx.at> <83pp9tiqm6.fsf@gnu.org> <54CE548E.5020605@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422811751 30070 80.91.229.3 (1 Feb 2015 17:29:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 17:29:11 +0000 (UTC) Cc: 19721@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 18:29:10 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 1YHyKb-00072w-JS for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 18:29:09 +0100 Original-Received: from localhost ([::1]:51269 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHyKa-00056A-QR for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 12:29:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33382) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHyKX-000553-A6 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 12:29:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHyKU-0000pN-2K for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 12:29:05 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHyKT-0000pH-VJ for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 12:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHyKT-0001BQ-MI for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 12:29:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 01 Feb 2015 17:29: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.14228116894486 (code B ref 19721); Sun, 01 Feb 2015 17:29:01 +0000 Original-Received: (at 19721) by debbugs.gnu.org; 1 Feb 2015 17:28:09 +0000 Original-Received: from localhost ([127.0.0.1]:59785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHyJc-0001AI-V3 for submit@debbugs.gnu.org; Sun, 01 Feb 2015 12:28:09 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:54715) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHyJZ-00019h-FZ for 19721@debbugs.gnu.org; Sun, 01 Feb 2015 12:28:07 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NJ300A00SESZI00@a-mtaout20.012.net.il> for 19721@debbugs.gnu.org; Sun, 01 Feb 2015 19:27:58 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ300ADPSIMMJA0@a-mtaout20.012.net.il>; Sun, 01 Feb 2015 19:27:58 +0200 (IST) In-reply-to: <54CE548E.5020605@gmx.at> X-012-Sender: halo1@inter.net.il 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:98952 Archived-At: > Date: Sun, 01 Feb 2015 17:30:06 +0100 > From: martin rudalics > CC: mituharu@math.s.chiba-u.ac.jp, 19721@debbugs.gnu.org > > > 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. I couldn't reproduce the problem with redrawing on expose events (which is not surprising, since on Windows expose events are almost never used, except when the frame is first displayed after it's created). But I have no trouble at all seeing that the mode-line glyph row is disabled, by using dump-glyph-matrix. > > 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)? That was my first attempt, and it didn't do a thorough enough job, as you can see from previous discussions. > > 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? Yes, but not because they become selected/deselected, because their glyph matrices are resized, and the mode-line row gets disabled in the process.