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 17:44:01 +0200 Message-ID: <83pp9tiqm6.fsf@gnu.org> References: <83r3ubjk5q.fsf@gnu.org> <83lhkjjhsp.fsf@gnu.org> <54CDE912.7070209@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422805519 31481 80.91.229.3 (1 Feb 2015 15:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 15:45:19 +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 16:45:13 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 1YHwi0-0002O3-LN for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 16:45:12 +0100 Original-Received: from localhost ([::1]:50885 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHwhz-0004xN-OB for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 10:45:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHwhv-0004tf-8o for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 10:45:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHwhr-0001bc-91 for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 10:45:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHwhq-0001Z7-Si for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 10:45:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHwhp-000752-Sa for bug-gnu-emacs@gnu.org; Sun, 01 Feb 2015 10:45: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: Sun, 01 Feb 2015 15:45: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.142280546927156 (code B ref 19721); Sun, 01 Feb 2015 15:45:01 +0000 Original-Received: (at 19721) by debbugs.gnu.org; 1 Feb 2015 15:44:29 +0000 Original-Received: from localhost ([127.0.0.1]:59755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHwhI-00073w-WE for submit@debbugs.gnu.org; Sun, 01 Feb 2015 10:44:29 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:35906) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHwhG-00073d-CN for 19721@debbugs.gnu.org; Sun, 01 Feb 2015 10:44:27 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NJ300A00NGEDQ00@a-mtaout20.012.net.il> for 19721@debbugs.gnu.org; Sun, 01 Feb 2015 17:44:18 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ300AQLNPT2760@a-mtaout20.012.net.il>; Sun, 01 Feb 2015 17:44:18 +0200 (IST) In-reply-to: <54CDE912.7070209@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:98947 Archived-At: > Date: Sun, 01 Feb 2015 09:51:30 +0100 > From: martin rudalics > CC: 19721@debbugs.gnu.org > > > If I apply both changes, mode-lines are redrawn when exposed, but some > > of them are not updated with C-x o. > > What happens when you do something trivial like > > --- a/src/window.c > +++ b/src/window.c > @@ -524,6 +524,8 @@ select_window (Lisp_Object window, Lisp_Object norecord, int inhibit_point_swap) > record_buffer (w->contents); > } > > + w->update_mode_line = 1; > + > return window; > } Thanks. 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, 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 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. It is because of this resizing that the mode-line row of the current matrix becomes disabled.