scsh-users
[Top] [All Lists]

Re: newbie question

To: "Tim R. Even" <time@ameritech.net>
Subject: Re: newbie question
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Tue, 13 Feb 2007 13:53:44 +0100
Cc: scsh-users@scsh.net
List-id: <scsh-users.list-id.scsh.net>
"Tim R. Even" <time@ameritech.net> writes:

> Hello,
>
> I've  installed SCSH and I am trying to use SCSH to print a bunch of
> thumbnails. I don't understand how to get xview to accept (car (glob
> "*.THM")).
>
> This seems mysterious to me because (run (xview "<file-name>.THM"))
> works, while (run (xview (car (glob "*.THM")))) signals an error.
>
> What am I missing?

In the first case, the argument is a string and can be passed
unchanged to xview. In the second case however you wrote an expression
that should compute the argument. To trigger the evaluation of this
expression into a string, you need to unquote it:

(run (xview ,(car (glob "*.THM"))))



-- 
Martin

<Prev in Thread] Current Thread [Next in Thread>