Re: [Sawfish] Need help by assoc with lists

[ Thread Index | Date Index | More lists.tuxfamily.org/sawfish Archives ]


Hi,

On Sun, 25 Mar 2012 21:19:33 +0300
wrote Timo Korvola <Timo.Korvola@xxxxxx>:

>On Saturday 24 March 2012 19:45:56 fuchur wrote:
>> If i type in sawfish-client:
>> 
>> (assoc '(#<window 0>) '(((#<window 8a00003>) . Term) ((#<window 0>) .
>> Mail) ((#<window 9000003>) . Office)))
>> 
>> it returns nothing,
>
>It raises an error. Window objects have no read syntax: they print like 
>#<window 8a00003> but that form is not a valid expression in programs. 
>The window object related to a particular window id can be obtained with 
>get-window-by-id.
>
>> it returns like expected:
>> ((<window 0>) . Mail)
>
>It probably does not mean what you expect though: '(<window 0>) 
>evaluates to a list containing the two symbols <window and 0>.
>

Ok. I use "window-id" and "get-window-by-id" now. "get-window-by-id" is
new for me.

Thank you.


-- 
Regards,
Fuchur

GPG Fingerprint: CA3B 8204 5B3E 6D48 6D53  C116 E5BC 70D5 B8D7 B2B0

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/