[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [STUMP] Syntax query: run-or-raise all-groups
From: |
Christian Brassat |
Subject: |
Re: [STUMP] Syntax query: run-or-raise all-groups |
Date: |
Fri, 9 Dec 2011 04:31:15 +0000 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Dec 08, 2011 at 06:38:20PM +0000, Johnny wrote:
> Hi,
>
> I have the following code in my .stumpwmrc:
>
> ,----
> | (define-key *root-map* (kbd "M-m") "alsamixer")
> | (defcommand alsamixer () ()
> | "Start or switch to alsamixer."
> | (run-or-raise "exec xterm -name alsamixer -e alsamixer -c 0" '(:instance
> "alsamixer") :all-groups nil))
> `----
>
> However, it seems I am not setting the optional variable all-groups
> properly, as it always searches through all groups to raise
> alsamixer. What is the proper syntax here?
>
> Thanks for any help!
>
> --
> Johnny
Something seems to be screwed with run-or-raise. The only way I got it
to work was reversing the whole thing, using
(setf *run-or-raise-all-groups* nil)
and then
(run-or-raise "exec whatever" '(:instance "something") :run-or-raise-all-groups
t)
for everything I *do* want to be raised across all groups.
I might have missed something, I'm by no means a lisp/stump expert, but
it's at least one way to solve the problem.
-- Christian