GNU bug report logs - #31859
26.1; Emacs has no way to determine if the current instance has a running server

Previous Next

Package: emacs;

Reported by: Thibault <thibault <at> thb.lt>

Date: Sat, 16 Jun 2018 16:05:02 UTC

Severity: wishlist

Found in version 26.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 31859 <at> debbugs.gnu.org (full text, mbox):

From: Thibault Polge <thibault <at> thb.lt>
To: 31859 <at> debbugs.gnu.org
Subject: Re: 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
[Message part 1 (text/plain, inline)]
> 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
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 6 years and 334 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.