diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-09-06 02:05:18 +0200 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-09-06 02:05:18 +0200 |
commit | 6a19f2a024b4cede80e2896318696008d1dd1b21 (patch) | |
tree | 4295e750c4151f90522de8a6c89a7fcf94c79980 /doc/emacs/misc.texi | |
parent | b648634982bb52be2b21e92d4aeb837621b5ec63 (diff) | |
download | emacs-6a19f2a024b4cede80e2896318696008d1dd1b21.tar.gz emacs-6a19f2a024b4cede80e2896318696008d1dd1b21.tar.bz2 emacs-6a19f2a024b4cede80e2896318696008d1dd1b21.zip |
Add new --timeout flag to emacsclient
* lib-src/emacsclient.c (DEFAULT_TIMEOUT): New constant.
(timeout): New static variable.
(longopts, shortopts, decode_options, print_help_and_exit): Add new
flag --timeout.
(set_socket_timeout, check_socket_timeout): New helper functions.
(main): Display a status message or exit after Emacs has not responded
for a while, depending on above new --timeout flag. (Bug#50849)
* doc/emacs/misc.texi (emacsclient Options):
* doc/man/emacsclient.1: Document the above new option.
* etc/NEWS: Announce it.
Diffstat (limited to 'doc/emacs/misc.texi')
-rw-r--r-- | doc/emacs/misc.texi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/emacs/misc.texi b/doc/emacs/misc.texi index df74577592a..d8ad0bee34f 100644 --- a/doc/emacs/misc.texi +++ b/doc/emacs/misc.texi @@ -2089,6 +2089,13 @@ all server buffers are finished. You can take as long as you like to edit the server buffers within Emacs, and they are @emph{not} killed when you type @kbd{C-x #} in them. +@item -w +@itemx --timeout=@var{N} +Wait for a response from Emacs for @var{N} seconds before giving up. +If there is no response within that time, @command{emacsclient} will +display a warning and exit. The default is @samp{0}, which means to +wait forever. + @item --parent-id @var{id} Open an @command{emacsclient} frame as a client frame in the parent X window with id @var{id}, via the XEmbed protocol. Currently, this |