stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [STUMP] [PATCH] mpd.lisp toggle-* fix


From: Morgan Veyret
Subject: Re: [STUMP] [PATCH] mpd.lisp toggle-* fix
Date: Wed, 22 Oct 2008 17:26:57 +0200
User-agent: Mutt/1.4.2.3i

Well use this patch instead, looks like there was the same problem for
all toggle-* commands.

On 17:19 Wed 22 Oct     , Morgan Veyret wrote:
> This simple patch fixes mpd-toggle-pause to work
> with newly introduced mpd-get-status function.
> -- 
> 
> Morgan Veyret (address@hidden)
> http://appart.kicks-ass.net/patzy

> From 5a754fc9de11df40eb58436542597e62e1762858 Mon Sep 17 00:00:00 2001
> From: Morgan Veyret <address@hidden>
> Date: Wed, 22 Oct 2008 17:18:22 +0200
> Subject: [PATCH] Fixed mpd-toggle-pause command to work with mpd-get-status.
> 
> ---
>  contrib/mpd.lisp |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/contrib/mpd.lisp b/contrib/mpd.lisp
> index 09ec699..7907d3b 100644
> --- a/contrib/mpd.lisp
> +++ b/contrib/mpd.lisp
> @@ -470,6 +470,7 @@ Volume
>   (mpd-send-command "kill"))
>  
>  (defcommand mpd-toggle-pause () ()
> +  (mpd-update-status)
>    (cond
>     ((equal (mpd-get-status) "Playing")
>      (mpd-send-command "pause 1"))
> -- 
> 1.5.5.1
> 

> _______________________________________________
> Stumpwm-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/stumpwm-devel


-- 

Morgan Veyret (address@hidden)
http://appart.kicks-ass.net/patzy

Attachment: 0024-Fixed-mpd-toggle-pause-command-to-work-with-mpd-get.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]