From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#777: marked as done (23.0.60; emacs -batch does not exit w error if debug-on-error) Date: Thu, 28 Aug 2008 11:20:04 -0700 Message-ID: References: <87tzd5t3bp.fsf@cyd.mit.edu> <48B31A65.3040602@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1219947604-26054-0" X-Trace: ger.gmane.org 1219948092 18566 80.91.229.12 (28 Aug 2008 18:28:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 18:28:12 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 28 20:29:06 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KYmEm-000380-D4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 20:28:53 +0200 Original-Received: from localhost ([127.0.0.1]:46586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYmDm-0003Nt-Rb for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Aug 2008 14:27:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYmDZ-0003EN-86 for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 14:27:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYmDY-0003Dm-2o for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 14:27:36 -0400 Original-Received: from [199.232.76.173] (port=54315 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYmDX-0003Di-Vu for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 14:27:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55741) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYmDW-00048j-Dr for bug-gnu-emacs@gnu.org; Thu, 28 Aug 2008 14:27:35 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SIRTDY028986; Thu, 28 Aug 2008 11:27:29 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7SIK497026142; Thu, 28 Aug 2008 11:20:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 777 X-Emacs-PR-Package: emacs X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:19816 Archived-At: This is a multi-part message in MIME format... ------------=_1219947604-26054-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 28 Aug 2008 14:14:02 -0400 with message-id <87tzd5t3bp.fsf@cyd.mit.edu> and subject line Re: 23.0.60; emacs -batch does not exit w error if debug-o= n-error has caused the Emacs bug report #777, regarding 23.0.60; emacs -batch does not exit w error if debug-on-error to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 777: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D777 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1219947604-26054-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.8 required=4.0 tests=AWL,BAYES_00,MIXEDBDN, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 25 Aug 2008 20:47:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7PKlhj0018959 for ; Mon, 25 Aug 2008 13:47:44 -0700 Received: from mx10.gnu.org ([199.232.76.166]:38536) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KXix6-0004IU-23 for emacs-pretest-bug@gnu.org; Mon, 25 Aug 2008 16:46:16 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KXiyP-0002XO-EN for emacs-pretest-bug@gnu.org; Mon, 25 Aug 2008 16:47:41 -0400 Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:36428) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KXiyO-0002Ws-Sw for emacs-pretest-bug@gnu.org; Mon, 25 Aug 2008 16:47:37 -0400 Received: from c83-254-151-176.bredband.comhem.se ([83.254.151.176]:62829 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KXiyN-0006GJ-3k for emacs-pretest-bug@gnu.org; Mon, 25 Aug 2008 22:47:35 +0200 Message-ID: <48B31A65.3040602@gmail.com> Date: Mon, 25 Aug 2008 22:47:33 +0200 From: "Lennart Borgman (gmail)" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: emacs-pretest-bug@gnu.org Subject: 23.0.60; emacs -batch does not exit w error if debug-on-error X-Enigmail-Version: 0.95.7 Content-Type: multipart/mixed; boundary="------------090503060603070007090908" X-Antivirus: avast! (VPS 080825-0, 2008-08-25), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.176 X-Scan-Result: No virus found in message 1KXiyN-0006GJ-3k. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KXiyN-0006GJ-3k ca862f7140120d43949cdfdc034f8212 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) This is a multi-part message in MIME format. --------------090503060603070007090908 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit If emacs is running in batch and an error occurs then it does not exit with error status if debug-on-error is t. If debug-on-error is nil then emacs exits with error status (which I think is correct). To demonstrate this open the attached file and evaluate the comment lines with compilation-start. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-10 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' --------------090503060603070007090908 Content-Type: text/plain; name="batch-exit.el" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="batch-exit.el" ;;; batch-exit.el --- test batch exit values ;;; Evaluating the next line gives the expected exit status (erro): ;;(compilation-start "emacs -Q -batch -f no-fun") ;;; Evaluating this line gives the expected exit status (error) if ;;; debug-on-error is nil, otherwise the exit status after the ;;; traceback is shown is success. ;;(compilation-start "emacs -Q -batch -l batch-exit.el") ;; If debug-on-error is set then emacs exit with 0 instead of 1 (setq debug-on-error t) (nofun) --------------090503060603070007090908-- ------------=_1219947604-26054-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.7 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 777-done) by emacsbugs.donarmstrong.com; 28 Aug 2008 18:12:13 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m7SIC7BJ024111 for <777-done@emacsbugs.donarmstrong.com>; Thu, 28 Aug 2008 11:12:08 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 31D4857E186; Thu, 28 Aug 2008 14:14:02 -0400 (EDT) To: "Lennart Borgman \(gmail\)" Cc: 777-done@emacsbugs.donarmstrong.com Subject: Re: 23.0.60; emacs -batch does not exit w error if debug-on-error From: Chong Yidong Date: Thu, 28 Aug 2008 14:14:02 -0400 Message-ID: <87tzd5t3bp.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > If emacs is running in batch and an error occurs then it does not exit > with error status if debug-on-error is t. If debug-on-error is nil > then emacs exits with error status (which I think is correct). > > I think using (kill-emacs 1) in function debug in debug.el may fix > this. Thanks, I've implemented the change you suggested. > Though 1 is perhaps not the correct value? Without debug-on-error, Emacs exits with status -1, so that's what we'll use. ------------=_1219947604-26054-0--