[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#31859: 26.1; Emacs has no way to determine if the current instance h
bug#31859: 26.1; Emacs has no way to determine if the current instance has a running server
Sat, 16 Jun 2018 18:27:03 +0200
mu4e 0.9.18; emacs 26.1
> Does it work to test whether server-process is bound and non-nil?
It works, indeed. Would you accept a documentation PR on the variable
and the two functions, which are much more obvious candidates?
For a general way of determining if the current instance has a server
running, check the value of `server-process`.
Or a PR adding a stupid helper function like:
;; server.el ---
(defun server-started-p ()
"Return non-nil if this Emacs has a server started."
(and (boundp server-process) server-process))
What do you think?
Description: PGP signature