Christophe Weblog Wiki Code Publications Music
actually add the completion function to completions
[squeeze-el.git] / squeeze.el
index 0d23a0c6d23dbeb5dd0349215b53ee8d3ec79024..2b0e4b8e080cc649a8bff77e1ae6c6103cc2c7db 100644 (file)
@@ -17,6 +17,7 @@
 
 (define-derived-mode squeeze-mode comint-mode "Squeeze"
   "Major mode for interacting with the Squeezebox Server CLI.\\<squeeze-mode-map>"
+  (add-to-list 'completion-at-point-functions 'squeeze-complete-command-at-point)
   (add-hook 'comint-preoutput-filter-functions 'url-unhex-string nil t)
   (add-hook 'comint-preoutput-filter-functions 'squeeze-update-state nil t))
 
   (let ((squeeze-control-inhibit-display t))
     (squeeze-control-query-players)
     (accept-process-output (get-buffer-process "*squeeze*"))
+    (squeeze-control-query-syncgroups)
+    (accept-process-output (get-buffer-process "*squeeze*"))
     (dolist (player squeeze-players)
       (squeeze-control-query-power (squeeze-player-playerid player))
       (accept-process-output (get-buffer-process "*squeeze*"))