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 18:08:57 +0300 Message-ID: <83imron88m.fsf@gnu.org> References: <877e87i0vw.fsf@gmail.com> <87imrqcuws.fsf@mouse.gnus.org> <83ef2enosr.fsf@gnu.org> <83r26dmcx3.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="232406"; 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 17:10:10 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 1hr1rD-000yIh-AY for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 17:10:07 +0200 Original-Received: from localhost ([::1]:40998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr1rC-0003UJ-CY for geb-bug-gnu-emacs@m.gmane.org; Fri, 26 Jul 2019 11:10:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43909) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hr1r9-0003Th-4l for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:10:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hr1r8-0000W5-3L for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34350) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hr1r7-0000Vi-W1 for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hr1r7-0001Ri-Oq for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2019 11:10: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 15:10: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.15641537545477 (code B ref 36803); Fri, 26 Jul 2019 15:10:01 +0000 Original-Received: (at 36803) by debbugs.gnu.org; 26 Jul 2019 15:09:14 +0000 Original-Received: from localhost ([127.0.0.1]:43170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr1qL-0001QH-GR for submit@debbugs.gnu.org; Fri, 26 Jul 2019 11:09:14 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57326) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hr1qJ-0001Q5-Mp for 36803@debbugs.gnu.org; Fri, 26 Jul 2019 11:09:12 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:50476) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hr1qC-0007gA-A9; Fri, 26 Jul 2019 11:09:05 -0400 Original-Received: from [176.228.60.248] (port=1593 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hr1qB-0007h7-MI; Fri, 26 Jul 2019 11:09:04 -0400 In-reply-to: (message from Stefan Monnier on Fri, 26 Jul 2019 09:59:39 -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:163797 Archived-At: > From: Stefan Monnier > Cc: kevin.legouguec@gmail.com, 36803@debbugs.gnu.org, larsi@gnus.org > Date: Fri, 26 Jul 2019 09:59:39 -0400 > > > Stefan, I'm looking and looking, and don't understand why that change > > made sense. The process-status indication in the mode line is shown > > in all windows, so status_notify is exactly the place where we should > > trigger update of all mode lines. > > Hmm... AFAIK the "process status" normally only indicates the status of > the process running in the buffer to which this mode line belongs. > Which is why I made the change to only bset_update_mode_line rather than > set the global update_mode_lines. 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? > 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? Or are you talking about some other issue?