stumpwm-devel
[Top][All Lists]
Advanced

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

Re: [STUMP] completing read for interactive specs?


From: Martin Oppegaard
Subject: Re: [STUMP] completing read for interactive specs?
Date: Sun, 1 Jan 2012 01:13:46 +0100

Hello there,

You may want to look at closures, such as

        (let (state)
          (define-stumpwm-type :custom (input prompt)
            (do something (and (setf state (argument-pop-or-read input
prompt))))))

I sent a patch with screen commands using this technique some days ago. One
example: "sgother other" which is the same as "gother" but works on the
"other" screen. In this case, the group part has to know about which screen
was selected earlier. I don't know any other way to do this currently than
using closures or special bindings.

Enjoy.




reply via email to

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