]> git.eshelyaron.com Git - emacs.git/commit
Add new --timeout flag to emacsclient
authorStefan Kangas <stefankangas@gmail.com>
Tue, 6 Sep 2022 00:05:18 +0000 (02:05 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Tue, 6 Sep 2022 00:05:18 +0000 (02:05 +0200)
commit6a19f2a024b4cede80e2896318696008d1dd1b21
tree4295e750c4151f90522de8a6c89a7fcf94c79980
parentb648634982bb52be2b21e92d4aeb837621b5ec63
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.
doc/emacs/misc.texi
doc/man/emacsclient.1
etc/NEWS
lib-src/emacsclient.c