[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (file-exists-p "") --> t??
From: |
Alfred M. Szmidt |
Subject: |
Re: (file-exists-p "") --> t?? |
Date: |
Wed, 29 Apr 2009 06:00:33 -0400 |
> I guess that makes sense, I am actually fiine with the behaviour,
> other than it is annoying when you use file-exists-p in a loop, and
> you start of with a empty string...
>
> (let ((foo ""))
> (while (not (file-exists-p foo))
> (setq foo (generate-foo-some-how))))
Why not use the following?
(let ((foo (generate-foo-some-how)))
(while (not (file-exists-p foo))
(setq foo (generate-foo-some-how))))
You might be passing a counter to the function that generates the file name.