From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel,gmane.emacs.bugs Subject: Re: bug#141: Process sentinel not called in batch mode Date: Fri, 16 May 2008 09:25:54 -0400 Message-ID: References: <87hcd1kcmz.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1210944420 11397 80.91.229.12 (16 May 2008 13:27:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 13:27:00 +0000 (UTC) Cc: 141@emacsbugs.donarmstrong.com, cyd@stupidchicken.com, eller.helmut@gmail.com, emacs-devel@gnu.org, bug-submit-list@donarmstrong.com, bug-gnu-emacs@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 15:27:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jwzxe-0006kc-Dg for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 15:27:02 +0200 Original-Received: from localhost ([127.0.0.1]:40433 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwzwu-00046U-UF for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 09:26:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jwzwq-00045x-Fs for emacs-devel@gnu.org; Fri, 16 May 2008 09:26:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jwzwp-00045K-An for emacs-devel@gnu.org; Fri, 16 May 2008 09:26:12 -0400 Original-Received: from [199.232.76.173] (port=37523 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jwzwm-00044a-JJ; Fri, 16 May 2008 09:26:08 -0400 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]:59613) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jwzwi-0000ux-Fk; Fri, 16 May 2008 09:26:04 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 9CA012CFAEE; Fri, 16 May 2008 09:26:03 -0400 (EDT) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 584BE3FE0; Fri, 16 May 2008 09:25:54 -0400 (EDT) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 419A141BEC; Fri, 16 May 2008 09:25:54 -0400 (EDT) In-Reply-To: (Richard M. Stallman's message of "Fri, 16 May 2008 07:32:02 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.82, requis 5, autolearn=not spam, ALL_TRUSTED -2.82) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:97270 gmane.emacs.bugs:18015 Archived-At: >> This problem occurs because wait_reading_process_output only calls >> status_notify when given a nonzero DO_DISPLAY argument (process.c:4451). >> Although wait_reading_process_output is called from many places in >> Emacs, it is given a nonzero DO_DISPLAY argument only during >> kbd_buffer_get_event. But that function is never called in batch mode. > Does anyone know why we test do_display there? > I think the idea is, if you are going to update the display, it is > good to display the fact that a process has terminated. This side I understand, but what about the other: why should we not check process status in the case where we are not redisplaying? Stefan