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: Eric Abrahamsen
Subject: Re: [STUMP] completing read for interactive specs?
Date: Sun, 01 Jan 2012 15:23:06 +0800
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux)

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 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.

Thanks for this—definitely something to look into. I'm finding that
making the transition from elisp to "real" lisp is a little more
difficult than I expected, and this looks like an advanced class! I've
copied it for later…

Thanks again,
Eric




reply via email to

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