Re: [STUMP] completing read for interactive specs?

2011-12-31 Thread Eric Abrahamsen
On Sun, Jan 01 2012, Martin Oppegaard wrote: > 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 scree

Re: [STUMP] completing read for interactive specs?

2011-12-31 Thread Martin Oppegaard
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 exampl

[STUMP] completing read for interactive specs?

2011-12-31 Thread Eric Abrahamsen
I'm into day four or five of using stumpwm and am loving it---particularly pleased with the mpd contrib plugin! I'm just curious: we've got completing read, and also an interactive form for defcommand: how hard would it be to allow defcommand to provide arguments (specifically a collection) to the