From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Wohler Newsgroups: gmane.emacs.devel Subject: Re: Sentinel interfering with compile's mode line update Date: Fri, 02 Dec 2005 14:56:51 -0800 Organization: Newt Software Message-ID: <23786.1133564211@olgas.newt.com> References: <20167.1133550632@olgas.newt.com> <871x0vjhbl.fsf-monnier+emacs@gnu.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1133564337 16737 80.91.229.2 (2 Dec 2005 22:58:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 2 Dec 2005 22:58:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 02 23:58:51 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EiJq3-0005Oa-4A for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2005 23:57:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiJq3-0003iF-BY for ged-emacs-devel@m.gmane.org; Fri, 02 Dec 2005 17:57:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EiJps-0003hz-7w for emacs-devel@gnu.org; Fri, 02 Dec 2005 17:57:00 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EiJpq-0003hm-Ia for emacs-devel@gnu.org; Fri, 02 Dec 2005 17:57:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EiJpq-0003hj-Ed for emacs-devel@gnu.org; Fri, 02 Dec 2005 17:56:58 -0500 Original-Received: from [69.93.192.76] (helo=tassie.newt.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EiJpt-0002sR-Ax for emacs-devel@gnu.org; Fri, 02 Dec 2005 17:57:01 -0500 Original-Received: from olgas.newt.com (m110e36d0.tmodns.net [208.54.14.17]) by tassie.newt.com (Postfix) with ESMTP id EB92C2D4012; Fri, 2 Dec 2005 14:56:56 -0800 (PST) Original-Received: by olgas.newt.com (Postfix, from userid 1000) id E972416FD8; Fri, 2 Dec 2005 14:56:51 -0800 (PST) Original-Received: from olgas.newt.com (localhost [127.0.0.1]) by olgas.newt.com (Postfix) with ESMTP id BCF9616FAC; Fri, 2 Dec 2005 14:56:51 -0800 (PST) Original-To: Stefan Monnier In-Reply-To: Stefan Monnier's message of Fri, 02 Dec 2005 16:54:54 EST. <871x0vjhbl.fsf-monnier+emacs@gnu.org> X-Mailer: MH-E 7.85+cvs; nmh 1.1; GNU Emacs 22.0.50.1 X-Image-URL: http://www.newt.com/wohler/images/bill-diving.png X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46913 Archived-At: Stefan Monnier wrote: > > I wrote a function to compile the MH-E manual and to start info when the > > compilation finishes. As you all know, when (compile) runs, it adds > > "Compiling" to all of the mode lines. When the compilation finishes, > > this text is removed. > > And this text is removed by ... the process sentinel. Thanks very much! That was enough of a clue for me to find and call compilation-sentinel from my sentinel. I'm not sure I like this, but at least it works. > > However, with the set-process-sentinel line in the function below, the > > "Compiling" text is never removed from the mode line. > > Because you replace the process sentinel with another. Wouldn't it be better to add the sentinel to the existing sentinels? Maybe it would be better to provide another function such as add-process-sentinel that provides this capability. Then one doesn't have to know the implementation details of the sentinelized process. If I didn't have the sources (and your help), I would not have been able to figure this out since nowhere in the documentation does it indicate that compile uses a sentinel and that I needed to call compilation-sentinel from my sentinel. -- Bill Wohler http://www.newt.com/wohler/ GnuPG ID:610BD9AD Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian! If you're passed on the right, you're in the wrong lane.