[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: |
Johnny |
Subject: |
Re: [STUMP] Syntax query: run-or-raise all-groups |
Date: |
Fri, 09 Dec 2011 21:02:47 +0000 |
User-agent: |
Gnus/5.110018 (No Gnus v0.18) Emacs/23.2 (gnu/linux) |
Christian Brassat <address@hidden> writes:
> 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?
>>
> 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.
>
That's interesting, that way around it is possible to make it work!
Additionally, I noted you use 'run-or-raise-all-groups' as variable name,
which seems to work equally well as just 'all-groups'.
Thanks for pointing this way out, I can very well live with this 'workaround'!
I wonder why it doen't work to default to 't' however?
--
Johnny