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: Sat, 31 Jan 2015 13:44:38 +0200 Message-ID: <83lhkjjhsp.fsf@gnu.org> References: <83r3ubjk5q.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422704836 22720 80.91.229.3 (31 Jan 2015 11:47:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 11:47:16 +0000 (UTC) Cc: 19721@debbugs.gnu.org To: YAMAMOTO Mitsuharu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 12:47:16 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 1YHWWA-0005KW-8s for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 12:47:14 +0100 Original-Received: from localhost ([::1]:40335 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHWW9-0006dV-GB for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 06:47:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHWW5-0006dM-27 for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 06:47:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHWVy-0000y5-WE for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 06:47:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39012) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHWVy-0000xv-Tq for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 06:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YHWVy-0003H5-HG for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2015 06:47: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: Sat, 31 Jan 2015 11:47:02 +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.142270477912530 (code B ref 19721); Sat, 31 Jan 2015 11:47:02 +0000 Original-Received: (at 19721) by debbugs.gnu.org; 31 Jan 2015 11:46:19 +0000 Original-Received: from localhost ([127.0.0.1]:58485 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHWVG-0003G2-RL for submit@debbugs.gnu.org; Sat, 31 Jan 2015 06:46:19 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:36502) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YHWVE-0003Fn-2j for 19721@debbugs.gnu.org; Sat, 31 Jan 2015 06:46:17 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NJ100M00HRT4T00@mtaout29.012.net.il> for 19721@debbugs.gnu.org; Sat, 31 Jan 2015 13:41:03 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ100EN4HSFM970@mtaout29.012.net.il>; Sat, 31 Jan 2015 13:41:03 +0200 (IST) In-reply-to: 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:98932 Archived-At: > Date: Sat, 31 Jan 2015 20:37:09 +0900 > From: YAMAMOTO Mitsuharu > Cc: 19721@debbugs.gnu.org > > With this patch, the mode-lines are redrawn when they are exposed. > But I also observe that a mode-line part is not updated with the last > C-x o (see the 3rd mode-line in the screenshot) with the previously > mentioned procedure on the Mac port. Strangely, if I try C-x o three > times further, then the second mode-line part is also not updated. Right. Which means it is not enough to avoid disabling the mode line, we must actually force its redrawing afterwards. How about the following patch instead of the previous one? diff --git a/src/dispnew.c b/src/dispnew.c index f73ea58..de9791e 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -564,6 +564,8 @@ struct redisplay_history while (i < matrix->nrows) matrix->rows[i++].enabled_p = false; + if (WINDOW_WANTS_MODELINE_P (w)) + w->update_mode_line = 1; } else {