From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#6963: More usecases, patch attached Date: Thu, 30 Sep 2010 03:52:22 +0200 Message-ID: References: <201009011216.17097.arne_bab@web.de> <20100929060918.GB9654@elzar.ws.whq.gocept.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 1285812697 8578 80.91.229.12 (30 Sep 2010 02:11:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Sep 2010 02:11:37 +0000 (UTC) Cc: 6963@debbugs.gnu.org To: Wolfgang Schnerring Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 30 04:11:35 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 1P18cR-0004TC-8A for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Sep 2010 04:11:35 +0200 Original-Received: from localhost ([127.0.0.1]:34042 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P18cP-0004ke-Jt for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 22:11:33 -0400 Original-Received: from [140.186.70.92] (port=52465 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P18cI-0004kK-6b for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 22:11:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P18cG-0000QG-OL for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 22:11:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53035) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P18cG-0000QA-Lg for bug-gnu-emacs@gnu.org; Wed, 29 Sep 2010 22:11:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P18IY-0002x6-8M; Wed, 29 Sep 2010 21:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Sep 2010 01:51:02 +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.128581141311342 (code B ref 6963); Thu, 30 Sep 2010 01:51:02 +0000 Original-Received: (at 6963) by debbugs.gnu.org; 30 Sep 2010 01:50:13 +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 1P18Hk-0002wt-DY for submit@debbugs.gnu.org; Wed, 29 Sep 2010 21:50:12 -0400 Original-Received: from mail-iw0-f172.google.com ([209.85.214.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P18Hi-0002wo-Bm for 6963@debbugs.gnu.org; Wed, 29 Sep 2010 21:50:11 -0400 Original-Received: by iwn3 with SMTP id 3so1647933iwn.3 for <6963@debbugs.gnu.org>; Wed, 29 Sep 2010 18:53:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ncT3PYLCjfZ/gJFzwrBDZJkE1B0x3oWQ/Q0FCo5yAMw=; b=gtRZ0SiTTDTi31y/Sj1Yy2R4SVhHbFfpAsgbgnNj7akwG6IsvmN3mM+20cJlDh/tfu SH2qC3/pa9PH2TERYOi5LEb+JP7LI8xX3zWyC/CXOKdB0tmDUeuKl5tPN9xc2TCsj7TP j1T170PunIn6/O5zRQFB9LOFT2ZbvTDyr9eaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=d6J8CLNlQSEM7fEu92R16UJx55t57tboKs27jZXYJTcnviF6oDg6JRhoI71OFeTEYV Au5D9BIWEwt++SfO6kRKoO04Tb0qXqZpjeFX8vCn9ZkEhD0xuOKE18flWG/qwWREGWNT cjcluPSCWQraEOQ6wHcKH11jtrMr++yLSpO2Y= Original-Received: by 10.231.155.206 with SMTP id t14mr2834587ibw.34.1285811582916; Wed, 29 Sep 2010 18:53:02 -0700 (PDT) Original-Received: by 10.231.196.71 with HTTP; Wed, 29 Sep 2010 18:52:22 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 29 Sep 2010 21:51:02 -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:40561 Archived-At: On Wed, Sep 29, 2010 at 16:42, Juanma Barranquero wrote: > Yes, it makes sense, because after -error the client's process is > deleted, so emacsclient exits immediately. Hmm. There are two cases: 1) The emacs server sends -error XXX, and closes the connection. emacsclient prints the error and exits. 2) The emacs server sends an unknown command; emacsclient prints an error and continues. With your patch, the case 2) would return EXIT_FAILURE (or the new exit code we discussed) even if subsequent commands are dealt with correctly. IIRC, receiving an unknown command from Emacs shouldn't be a fatal error; it can happen if you use an older emacsclient to connect to a more recent server.el with new functionality. Or should it? Comments anyone? =C2=A0 =C2=A0 Juanma