>>>>> "Stefan" == Stefan Scholl <[EMAIL PROTECTED]> writes:

    Stefan> Compile the following code:

    Stefan> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<
    Stefan> (defun foo (xyz)
    Stefan>   (with-open-file (f "something"
    Stefan>                      :if-does-not-exist xyz)
    Stefan>   (unless f (return-from foo 42))
    Stefan>   (read-line f)))
    Stefan> ---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<

[snip]

    Stefan> It doesn't know that XYZ can be NIL and therefor the stream F can be
    Stefan> NIL, too. The code isn't deleted when I write ":if-does-not-exist
    Stefan> nil".

Fixed.  It was caused by a missing "q":  set instead of setq.

Thanks!

Ray


Reply via email to