]> code.delx.au - gnu-emacs-elpa/commitdiff
* ampc.el (ampc): Warn if ampc is not byte compiled.
authorChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 1 Aug 2012 12:23:58 +0000 (14:23 +0200)
committerChristopher Schmidt <christopher@ch.ristopher.com>
Wed, 1 Aug 2012 12:23:58 +0000 (14:23 +0200)
ampc.el

diff --git a/ampc.el b/ampc.el
index 9c395d31effd133156f2a6699f2ff46dad25b950..1655b5d7a1c83b5ab5c7988422c5998582ae6ed5 100644 (file)
--- a/ampc.el
+++ b/ampc.el
@@ -1970,6 +1970,8 @@ This function is the main entry point for ampc.
 Non-interactively, HOST and PORT specify the MPD instance to
 connect to.  The values default to localhost:6600."
   (interactive "MHost (localhost): \nMPort (6600): ")
+  (unless (byte-code-function-p (symbol-function 'ampc))
+    (message "You should byte-compile ampc"))
   (run-hooks 'ampc-before-startup-hook)
   (when (or (not host) (equal host ""))
     (setf host "localhost"))