Christian Brassat <cr...@mail.com> 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 _______________________________________________ Stumpwm-devel mailing list Stumpwm-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/stumpwm-devel