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: Sat, 27 Jul 2019 16:12:59 +0300 Message-ID: <83tvb7lixw.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> <83h878mzjc.fsf@gnu.org> <83ef2cmwji.fsf@gnu.org> <83a7czncm9.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="210100"; 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 Sat Jul 27 15:14:08 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 1hrMWV-000sW0-Sl for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 15:14:08 +0200 Original-Received: from localhost ([::1]:45768 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrMWU-0006lu-QC for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 09:14:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59052) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrMWR-0006lV-Hs for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 09:14:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrMWQ-00068Z-K2 for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 09:14:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35051) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrMWQ-00068P-GD for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 09:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrMWQ-0002M6-9h for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 09:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 13:14:02 +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.15642331988993 (code B ref 36803); Sat, 27 Jul 2019 13:14:02 +0000 Original-Received: (at 36803) by debbugs.gnu.org; 27 Jul 2019 13:13:18 +0000 Original-Received: from localhost ([127.0.0.1]:43872 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrMVh-0002Ky-Nj for submit@debbugs.gnu.org; Sat, 27 Jul 2019 09:13:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrMVf-0002Kl-Uw for 36803@debbugs.gnu.org; Sat, 27 Jul 2019 09:13:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40069) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hrMVa-00051G-Hv; Sat, 27 Jul 2019 09:13:10 -0400 Original-Received: from [176.228.60.248] (port=3227 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hrMVZ-0003hn-L0; Sat, 27 Jul 2019 09:13:10 -0400 In-reply-to: (message from Stefan Monnier on Sat, 27 Jul 2019 08:46:35 -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:163862 Archived-At: > From: Stefan Monnier > Cc: 36803@debbugs.gnu.org, larsi@gnus.org, kevin.legouguec@gmail.com > Date: Sat, 27 Jul 2019 08:46:35 -0400 > > >> 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. > > > > This is true only if the process status is modified via > > mode-line-process, which is a buffer-local variable. If a Lisp > > program modifies the mode line directly, the result will be global. > > That's what compile.el does via compilation-in-progress, but the most > > basic operation is simply to add %s to mode-line-format (or to > > header-line-format or even to frame-title-format). > > That's not a problem: %s only shows the status *of the process in the > current buffer*: the status of a process in buffer A is never > reflected in the %s part of the mode-line of other buffers, which is why > the sentinel code only causes a mode-line update for the process's buffer. If there's no way for a Lisp program to inject a global process-status element into the mode line, then I guess your patch is TRT, indeed. Thanks.