From: Red Hat Linux User

Subject: eval problem

Date: 1998-6-16 21:57

I am wondering if anyone can help me with the following?
This first bit gose OK:
user(10): (setq line "S1   bob    gft")
"S1   bob    gft"
user(11): (with-input-from-string (s line)
            ( read s))
S1
However when I try to use eval I get:
user(12): (setq read-s '(read s))
(read s)
user(13):  (with-input-from-string (s line)
            ( eval read-s))
Error: Attempt to take the value of the unbound variable `s'.
  [condition type: unbound-variable]

It seems to be something to do with scope. I've tried to reproduce the
problem with other constructs eg let, but they all work as I expect.

Malcolm McQueen