bug-gnu-emacs
[Top][All Lists]
Advanced

[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


From: Thibault Polge
Subject: bug#31859: 26.1; Emacs has no way to determine if the current instance has a running server
Date: Sat, 16 Jun 2018 18:27:03 +0200
User-agent: 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?
Something like:

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 ---
...
;;;###autoload
(defun server-started-p ()
    "Return non-nil if this Emacs has a server started."
    (and (boundp server-process) server-process))

What do you think?

Th

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]