GNU bug report logs - #6963
Return an exit status to emacsclient

Previous Next

Package: emacs;

Reported by: Arne Babenhauserheide <arne_bab <at> web.de>

Date: Wed, 1 Sep 2010 10:16:01 UTC

Severity: wishlist

Found in version 23.2

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 6963 <at> debbugs.gnu.org (full text, mbox):

From: Juanma Barranquero <lekktu <at> gmail.com>
To: Wolfgang Schnerring <wosc <at> wosc.de>
Cc: 6963 <at> debbugs.gnu.org
Subject: Re: bug#6963: More usecases, patch attached
Date: Thu, 30 Sep 2010 03:52:22 +0200
On Wed, Sep 29, 2010 at 16:42, Juanma Barranquero <lekktu <at> gmail.com> 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?

    Juanma




This bug report was last modified 14 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.