all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#60592: 30.0.50; emacsclient: exit with a different code when the request times out
@ 2023-01-06  5:47 Sean Whitton
  2023-01-06  7:37 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Sean Whitton @ 2023-01-06  5:47 UTC (permalink / raw)
  To: 60592

Hello,

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.

We might then consider adding a separate exit code for a Lisp error.
Then a failure of emacsclient to connect, a request that timed out, and
an error from Lisp would be readily distinguishable.

At present the best one could do is parse emacsclient's output, but
that doesn't seem robust.

-- 
Sean Whitton





^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-01-06 19:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-06  5:47 bug#60592: 30.0.50; emacsclient: exit with a different code when the request times out Sean Whitton
2023-01-06  7:37 ` Eli Zaretskii
2023-01-06 17:57   ` Sean Whitton
2023-01-06 18:12     ` Eli Zaretskii
2023-01-06 19:03       ` Sean Whitton

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.