bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6963: More usecases, patch attached


From: Wolfgang Schnerring
Subject: bug#6963: More usecases, patch attached
Date: Wed, 29 Sep 2010 17:08:05 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

* Juanma Barranquero <lekktu@gmail.com> [2010-09-29 16:42]:
> On Wed, Sep 29, 2010 at 08:09, Wolfgang Schnerring <wosc@wosc.de> wrote:
> > since emacsclient returns 0 no matter what.
> That's not accurate. When emacsclient detects a problem with itself
> (missing server file, error opening socket, etc.) it returns
> EXIT_FAILURE (1). What it currently does not do, however, is returning
> EXIT_FAILURE for errors passed back from Emacs.

Right. Your description is accurate, I was glossing over a bit too
much, sorry.
 
> - should this be considered a bug, and installed on emacs-23, or a new
> feature, for the trunk?

I personally consider it a bug, since everything else about "errors
from Emacs" is already there, only the exit status is missing. And
that really does not play nice with others.
(That said, this is a gray area, and one could probably also just as
well argue the opposite.)

> - should emacsclient return 1 for these new errors, or a new error
> code (2) to allow distinguishing them?

It probably makes sense to distinguish these, since they are different
types of errors, technical ("communication with Emacs failed") vs.
semantic ("Emacs said boo!").
One might want to invoke something that has known error cases, which
would benefit from being treated differently than a socket error or
somesuch.

Wolfgang





reply via email to

[Prev in Thread] Current Thread [Next in Thread]