From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36803: 27.0.50; Update mode-line of every window when compilation ends Date: Sat, 27 Jul 2019 08:46:35 -0400 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="101506"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36803@debbugs.gnu.org, larsi@gnus.org, kevin.legouguec@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jul 27 14:47: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 1hrM6N-000QGi-SE for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 14:47:08 +0200 Original-Received: from localhost ([::1]:45670 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrM6M-00089l-UX for geb-bug-gnu-emacs@m.gmane.org; Sat, 27 Jul 2019 08:47:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52340) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hrM6J-00089b-Jg for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 08:47:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hrM6I-0002zv-Jg for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 08:47:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35024) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hrM6I-0002zg-GR for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 08:47:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hrM6I-0001Do-CL for bug-gnu-emacs@gnu.org; Sat, 27 Jul 2019 08:47:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2019 12:47: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.15642316104067 (code B ref 36803); Sat, 27 Jul 2019 12:47:02 +0000 Original-Received: (at 36803) by debbugs.gnu.org; 27 Jul 2019 12:46:50 +0000 Original-Received: from localhost ([127.0.0.1]:43845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrM66-00013H-0j for submit@debbugs.gnu.org; Sat, 27 Jul 2019 08:46:50 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hrM62-0000wY-U4 for 36803@debbugs.gnu.org; Sat, 27 Jul 2019 08:46:48 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EA0A2101AF6; Sat, 27 Jul 2019 08:46:40 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4A113100B8F; Sat, 27 Jul 2019 08:46:39 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1564231599; bh=NVysK5kp1ziSrEI9HKyu4zLIIwVrQWtQTYWkxw/9KxA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=E80UYrxBGQn3H+xGHxGe++i4a0fkhK8HE1m+cKvmEu77xhE+x4tt1tHKR5qCZQ4tw Kh+4J8IcJqgyb30ENnsagaPmbf1bFaWeeL48pR4DSspfuGQIcGxuITP9EEEERXkKg9 SHcKJutf04f8rNkgBL6ZJAwQ8FvJSeb4u5xzaPg351oaoTDcw31Y2FXR3g83YLXM5u 9P+NAH8mGkb01ORzTuptj9TXGuWyIaBSfQXPsfccayuthB55DgeZueU3nYRpqYpGKV jQ1Le5LDjfOYabEJFoeX1DHFCp5+JTiSKW+pldnUkWwZcV5Lm/BIOiN5QI2z/jMj9P M5TjTzo6TG7Gw== Original-Received: from pastel (unknown [216.154.19.233]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id F14EB12081F; Sat, 27 Jul 2019 08:46:38 -0400 (EDT) In-Reply-To: <83a7czncm9.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 27 Jul 2019 10:46:38 +0300") 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:163857 Archived-At: > Yes. And if you add to the recipe yet another, unrelated buffer > displayed in the 4th window, then its mode line will also show > "Compiling" if that buffer is not the current buffer when "M-x > compile" is invoked. Yes, with 100 windows, 98 of them will stay stale. > And that brings me right back to the beginning. In response to my > original question, you said: > >> 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. Stefan