[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18487: `server-running-p' not autoloaded
From: |
Emilio Lopes |
Subject: |
bug#18487: `server-running-p' not autoloaded |
Date: |
Tue, 16 Sep 2014 22:11:21 +0200 |
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@gmx.net>
+
+ * server.el (server-running-p): add autoload cookie.
+
2014-09-16 Stefan Monnier <monnier@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.
- bug#18487: `server-running-p' not autoloaded,
Emilio Lopes <=