Re: newbie question

Martin Gasbichler <[email protected]> Tue, 13 Feb 2007 13:53:44 +0100
Newsgroups gmane.lisp.scheme.scsh
Message-ID <[email protected]>
"Tim R. Even" <[email protected]> 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