From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#777: 23.0.60; emacs -batch does not exit w error if debug-on-error Date: Mon, 25 Aug 2008 22:47:33 +0200 Message-ID: <48B31A65.3040602@gmail.com> Reply-To: "Lennart Borgman \(gmail\)" , 777@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------090503060603070007090908" X-Trace: ger.gmane.org 1219698472 21828 80.91.229.12 (25 Aug 2008 21:07:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2008 21:07:52 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 25 23:08:46 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 1KXjIo-0005L4-Ia for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 23:08:45 +0200 Original-Received: from localhost ([127.0.0.1]:54032 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXjHm-0003An-CT for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Aug 2008 17:07:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KXjHi-0003AL-Ec for bug-gnu-emacs@gnu.org; Mon, 25 Aug 2008 17:07:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KXjHf-00039g-FE for bug-gnu-emacs@gnu.org; Mon, 25 Aug 2008 17:07:33 -0400 Original-Received: from [199.232.76.173] (port=39795 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KXjHf-00039N-Af for bug-gnu-emacs@gnu.org; Mon, 25 Aug 2008 17:07:31 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60133) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KXjHe-0006gp-Dy for bug-gnu-emacs@gnu.org; Mon, 25 Aug 2008 17:07:30 -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 m7PL7Shc025893; Mon, 25 Aug 2008 14:07:28 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m7PKt5Fx020849; Mon, 25 Aug 2008 13:55:05 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 25 Aug 2008 20:55:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 777 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121969726718965 (code B ref -1); Mon, 25 Aug 2008 20:55:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 25 Aug 2008 20:47:47 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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 X-Enigmail-Version: 0.95.7 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!) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Mon, 25 Aug 2008 17:07:32 -0400 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:19704 gmane.emacs.pretest.bugs:22866 Archived-At: 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--