Re: [Sawfish] Need help by assoc with lists |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
- To: fuchur <flohtransporter@xxxxxxxxx>
- Subject: Re: [Sawfish] Need help by assoc with lists
- From: Timo Korvola <Timo.Korvola@xxxxxx>
- Date: Sun, 25 Mar 2012 21:19:33 +0300
- Cc: sawfish@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=WXYnl1Rohb609Uxz53zIrWnsHmmeebdmw2kgSqnS3rk=; b=K5xxKW+Oqrv6GnvlqdtjJmbwPJNtsqsHT/7Wo43vBiRwsb/G6YN6fCXnIyeJ/mea+C pqGYFuQclMI2cRdo7u+/7wr0uh1UkuWqf7yHhGftS4vy1xCyb9xuFvHtEwlxRlI00ooQ yXWvCydZO3hMASUI2Kp8MtLIhcIqk29r9gaaMjSs4p7pEn5sJhPfzLA8AjV9czXmGAMO mzeD+oGBijUsK0DZkl+Kgv54bPn0DCbapsi6+tZ02XZRNnhGR31zNtja2oMoS6ZX4DaO hEJoNcghigBiec363U05uFmzdwU9QyVUoM4vItWkmNdvOTaNmAIGXgrjD7cijDWLHHOk qClg==
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>.
--
Timo Korvola <URL:http://www.iki.fi/tkorvola>
--
--
Sawfish ML