branch: externals/ampc
commit 6a8bf556e6a8e3c5c3493893e53fe0d3f57fd980
Author: Christopher Schmidt <christop...@ch.ristopher.com>
Commit: Christopher Schmidt <christop...@ch.ristopher.com>

    * ampc.el (ampc): Warn if ampc is not byte compiled.
---
 ampc.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ampc.el b/ampc.el
index 9c395d31ef..1655b5d7a1 100644
--- 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"))

Reply via email to