From: Emilio Lopes <eclig@gmx.net>
To: 18487@debbugs.gnu.org
Subject: bug#18487: `server-running-p' not autoloaded
Date: Tue, 16 Sep 2014 22:11:21 +0200 [thread overview]
Message-ID: <CANiPZaAL5SNLk1bN56ch81wkUoH2cQ+Ooyvx2geNz1kuQrEnGA@mail.gmail.com> (raw)
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.
next reply other threads:[~2014-09-16 20:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-16 20:11 Emilio Lopes [this message]
2014-09-17 19:43 ` bug#18487: `server-running-p' not autoloaded Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CANiPZaAL5SNLk1bN56ch81wkUoH2cQ+Ooyvx2geNz1kuQrEnGA@mail.gmail.com \
--to=eclig@gmx.net \
--cc=18487@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).