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.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 18487 in the body.
You can then email your comments to 18487 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18487
; Package
emacs
.
(Tue, 16 Sep 2014 20:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Emilio Lopes <eclig <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 16 Sep 2014 20:12:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#18487
; Package
emacs
.
(Wed, 17 Sep 2014 19:44:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 18487 <at> debbugs.gnu.org (full text, mbox):
Emilio Lopes wrote:
> 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))
Since it's not interactive, why does it matter?
Ie, just stick a (require 'server) in there.
Added tag(s) notabug.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Dec 2015 16:08:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
18487 <at> debbugs.gnu.org and Emilio Lopes <eclig <at> gmx.net>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sat, 26 Dec 2015 16:08:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 24 Jan 2016 12:24:12 GMT)
Full text and
rfc822 format available.
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.