GNU bug report logs - #60592
30.0.50; emacsclient: exit with a different code when the request times out

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Fri, 6 Jan 2023 05:48:02 UTC

Severity: normal

Found in version 30.0.50

Full log


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

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 60592 <at> debbugs.gnu.org
Subject: Re: bug#60592: 30.0.50; emacsclient: exit with a different code
 when the request times out
Date: Fri, 06 Jan 2023 10:57:18 -0700
Hello,

On Fri 06 Jan 2023 at 09:37AM +02, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton <at> spwhitton.name>
>> Date: Thu, 05 Jan 2023 22:47:49 -0700
>>
>> When calling 'emacsclient --timeout N --eval' from scripts, it would be
>> nice if you could determine for sure when a failure was just due to a
>> timeout, rather than, say, a Lisp exception.
>>
>> inotifywait(1) exits with code 2 to indicate a timeout.
>> emacsclient could do the same.
>
> It would be more portable to have the exception handler send a special
> message to emacsclient, so that it would know the reason without
> guessing.

I think this is wholly complimentary to what I'm suggesting, right?

-- 
Sean Whitton




This bug report was last modified 2 years and 160 days ago.

Previous Next


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