Fix toggle commands
This commit is contained in:
parent
f4aee5ef91
commit
453e148bf3
1 changed files with 4 additions and 4 deletions
8
empc.el
8
empc.el
|
|
@ -846,13 +846,13 @@ If the stream process is killed for whatever the reason, pause mpd if possible."
|
||||||
(empc-with-updated-status
|
(empc-with-updated-status
|
||||||
(let ((,(if attr attr
|
(let ((,(if attr attr
|
||||||
(intern command))
|
(intern command))
|
||||||
(empc-status-get empc-object (quote ,(intern (concat ":" (if state-name
|
(empc-status-get empc-object ,(intern (concat ":" (if state-name
|
||||||
state-name
|
state-name
|
||||||
command)))))))
|
command))))))
|
||||||
,(if body
|
,(if body
|
||||||
`(progn ,@body)
|
`(progn ,@body)
|
||||||
`(,(intern (concat "empc-send-" command)) ,(if attr attr
|
`(,(intern (concat "empc-send-" command)) (% (1+ ,(if attr attr
|
||||||
(intern command)))))))))))
|
(intern command))) 2))))))))))
|
||||||
|
|
||||||
;; Querying MPD's status
|
;; Querying MPD's status
|
||||||
(empc-define-simple-command "clearerror")
|
(empc-define-simple-command "clearerror")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue