From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#36803: 27.0.50; Update mode-line of every window when compilation ends Date: Fri, 26 Jul 2019 21:16:55 +0300 Message-ID: <83h878mzjc.fsf@gnu.org> References: <877e87i0vw.fsf@gmail.com> <87imrqcuws.fsf@mouse.gnus.org> <83ef2enosr.fsf@gnu.org> <83r26dmcx3.fsf@gnu.org> <83imron88m.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="248498"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 36803@debbugs.gnu.org, larsi@gnus.org, kevin.legouguec@gmail.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 26 20:18:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hr4nI-0012Tl-OI for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 20:18:16 +0200 Original-Received: from localhost ([::1]:42892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4nH-00046k-KS for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 14:18:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52080) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr4n9-00042C-UF for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 14:18:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr4n4-0002eT-9k for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 14:18:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr4n4-0002dp-69 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 14:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hr4n3-0001os-V4 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 14:18:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Jul 2019 18:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36803 X-GNU-PR-Package: emacs Original-Received: via spool by 36803-submit@debbugs.gnu.org id=B36803.15641650306930 (code B ref 36803); Fri, 26 Jul 2019 18:18:01 +0000 Original-Received: (at 36803) by debbugs.gnu.org; 26 Jul 2019 18:17:10 +0000 Original-Received: from localhost ([127.0.0.1]:43344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr4mE-0001nh-1h for submit@debbugs.gnu.org; Fri, 26 Jul 2019 14:17:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr4mC-0001nT-IX for 36803@debbugs.gnu.org; Fri, 26 Jul 2019 14:17:09 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hr4m6-0001Mj-96; Fri, 26 Jul 2019 14:17:02 -0400 Original-Received: from [176.228.60.248] (port=1064 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hr4m5-0001pO-Iv; Fri, 26 Jul 2019 14:17:02 -0400 In-reply-to: (message from Stefan Monnier on Fri, 26 Jul 2019 12:23:26 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:163810 Archived-At: > From: Stefan Monnier > Cc: 36803@debbugs.gnu.org, larsi@gnus.org, kevin.legouguec@gmail.com > Date: Fri, 26 Jul 2019 12:23:26 -0400 > > > So you are saying that there's a redisplay bug, whereby some windows > > that display a buffer don't have their mode line updated in the recipe > > of this bug report? > > In the recipe of this bug, we have a process in the compilation buffer > and the status of this process is reflected in the mode line of > *all* windows (via the compilation-in-progress variable). > > The "process status" I'm referring to above is another kind of "process > status" in the mode-line: that of `mode-line-process` which is usually > buffer-local and only reflects the status of the process running in that > same buffer. But the recipe uses "C-x 2" several times, so all the windows display the same buffer. And yet one of them has its mode line not updated after the process exist. > >> Additionally, in this particular case, the need to update all mode-lines > >> doesn't come from the fact that a sentinel was run, but from the fact > >> that compilation-in-progress was modified, which can (and does) also > >> happen when no sentinel is run. So I think TRT is something like the > >> patch below. > > force-mode-line-update with a non-nil argument affects all the > > windows, even those which don't show the process status. So why are > > you saying it's TRT in this case? > > Because the status of the compilation process *is* by default reflected > in the mode line of all windows Then we should update all mode lines when the status changes, and we should not require any Lisp to force that update.