GNU bug report logs -
#18487
`server-running-p' not autoloaded
Previous Next
Reported by: Emilio Lopes <eclig <at> gmx.net>
Date: Tue, 16 Sep 2014 20:12:02 UTC
Severity: minor
Tags: moreinfo, notabug
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
The function `server-running-p' is not autoloaded. That means that
the following code in
the user's init-file will result in an error:
(unless (or noninteractive
(server-running-p))
(server-start))
On the other hand, `server-start' doesn't signal an error if called
when a server process is already running.
So the test using `server-running-p' is indeed not necessary (anymore?).
Anyway, the following patch adds the `autoload cookie' for `server-running-p':
--- lisp/ChangeLog 2014-09-16 00:28:28 +0000
+++ lisp/ChangeLog 2014-09-16 13:36:04 +0000
@@ -1,3 +1,7 @@
+2014-09-16 Emilio C. Lopes <eclig <at> gmx.net>
+
+ * server.el (server-running-p): add autoload cookie.
+
2014-09-16 Stefan Monnier <monnier <at> iro.umontreal.ca>
* msb.el (msb--make-keymap-menu, msb-menu-bar-update-buffers):
=== modified file 'lisp/server.el'
--- lisp/server.el 2014-07-08 19:15:28 +0000
+++ lisp/server.el 2014-09-16 13:36:04 +0000
@@ -704,6 +704,7 @@
(file-error
(message "No connection file %S" file)))))
+;;;###autoload
(defun server-running-p (&optional name)
"Test whether server NAME is running.
This bug report was last modified 9 years and 209 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.