From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#6963: More usecases, patch attached Date: Sun, 03 Oct 2010 00:55:40 -0400 Message-ID: <87r5g727ub.fsf@stupidchicken.com> References: <201009011216.17097.arne_bab@web.de> <20100929060918.GB9654@elzar.ws.whq.gocept.com> <87r5g8i1qj.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1286082712 28839 80.91.229.12 (3 Oct 2010 05:11:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 3 Oct 2010 05:11:52 +0000 (UTC) Cc: 6963@debbugs.gnu.org, Wolfgang Schnerring To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Oct 03 07:11:50 2010 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.69) (envelope-from ) id 1P2GrV-0002Fv-KK for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Oct 2010 07:11:49 +0200 Original-Received: from localhost ([127.0.0.1]:60631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2GrU-0003E7-8Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Oct 2010 01:11:48 -0400 Original-Received: from [140.186.70.92] (port=52731 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P2GrJ-0003Dv-Um for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2010 01:11:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P2GrH-0001Mt-QA for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2010 01:11:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P2GrH-0001Mp-OR for bug-gnu-emacs@gnu.org; Sun, 03 Oct 2010 01:11:35 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P2GZJ-0003YG-PN; Sun, 03 Oct 2010 00:53:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Oct 2010 04:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6963 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6963-submit@debbugs.gnu.org id=B6963.128608156613645 (code B ref 6963); Sun, 03 Oct 2010 04:53:01 +0000 Original-Received: (at 6963) by debbugs.gnu.org; 3 Oct 2010 04:52:46 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P2GZ4-0003Y2-Ba for submit@debbugs.gnu.org; Sun, 03 Oct 2010 00:52:46 -0400 Original-Received: from pantheon-po16.its.yale.edu ([130.132.50.72]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P2GZ2-0003Xx-Ar for 6963@debbugs.gnu.org; Sun, 03 Oct 2010 00:52:44 -0400 Original-Received: from furry (adsl-99-111-197-225.dsl.wlfrct.sbcglobal.net [99.111.197.225]) (authenticated bits=0) by pantheon-po16.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o934tkB3000395 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 3 Oct 2010 00:55:46 -0400 Original-Received: by furry (Postfix, from userid 1000) id E8891C018; Sun, 3 Oct 2010 00:55:40 -0400 (EDT) In-Reply-To: (Juanma Barranquero's message of "Sun, 3 Oct 2010 02:38:29 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 03 Oct 2010 00:53:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , 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:40667 Archived-At: Juanma Barranquero writes: > On Sun, Oct 3, 2010 at 02:00, Chong Yidong wrote: > >> I agree, the second case should not lead to EXIT_FAILURE. =C2=A0I've che= cked >> the patch, with this and a couple of other corrections, into the trunk. > > OK, though I agree with Wolfgang that the first case would be more > useful returning a new EXIT_EMACSERROR (2) instead of EXIT_FAILURE > (1). I'm ambivalent. This argument implies that we should give different exit code for everything that could lead to failure in emacsclient, and there are 18 separate cases in emacsclient.c. It seems to me that, in practice, people don't bother looking up the exit code, since there's no established convention (other than 0 for success and 1 for failure); they just look at the error message.