ratpoison-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [RP] persistence of window numbers?


From: Trent Buck
Subject: Re: [RP] persistence of window numbers?
Date: Fri, 25 Feb 2005 04:31:17 +1100

Up spake Joe Corneli:
> 
> 
> 
> (mapcar 'string-to-number (split-string (ratpoison-windows "%n")))
> ;=> (2 5)
> 
> (ratpoison-number 1 5)
> ;=> ""
> 
> (mapcar 'string-to-number (split-string (ratpoison-windows "%n")))
> ;=> (1 5)
> 
> 
> But wait a second, I thought I just changed window 5 to be window 1.
> 
> number N TARGET
>      Set a window's number to N. If another window occupies the
>      requested number already, then the windows' numbers are swapped.
> 
>      The second argument, TARGET, is optional. It should be the number
>      of the window whose number will be changed. If TARGET is omitted
>      ratpoison defaults to the current window.
> 
> Why wasn't the return value of the last function call (1 2) instead of
> (1 5)?
> 
> Note that if I switch to window 5 and run (ratpoison-number 1) there,
> things work as expected.

I think you have the parameters the wrong way round.

-- 
-trent
The key is to commit crimes so confusing that police feel too stupid to
even write a crime report about them. -- Aubrey, Something Positive




reply via email to

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