From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: (file-exists-p "") --> t?? Date: Mon, 27 Apr 2009 14:28:25 +0200 (CEST) Message-ID: <20090427.142825.960840171362457236.hanche@math.ntnu.no> References: <20090427.141242.873398455467769355.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240835380 20317 80.91.229.12 (27 Apr 2009 12:29:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 12:29:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: ams@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 14:29:32 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LyPwu-0005KY-Hb for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 14:28:41 +0200 Original-Received: from localhost ([127.0.0.1]:45178 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPwt-0005oq-Q2 for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 08:28:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyPwo-0005oL-7t for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:28:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyPwj-0005nS-SN for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:28:33 -0400 Original-Received: from [199.232.76.173] (port=51726 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPwj-0005nN-Lb for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:28:29 -0400 Original-Received: from fiinbeck.math.ntnu.no ([129.241.15.140]:57784) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LyPwj-0002VI-4H for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:28:29 -0400 Original-Received: (qmail 70878 invoked from network); 27 Apr 2009 12:28:25 -0000 Original-Received: from localhost (127.0.0.1) by localhost with SMTP; 27 Apr 2009 12:28:25 -0000 In-Reply-To: X-URL: http://www.math.ntnu.no/~hanche/ X-Mailer: Mew version 6.2.50 on Emacs 23.0.60 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110490 Archived-At: + "Alfred M. Szmidt" : > 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)))) Ah, I see. (let (foo) (while (not (file-exists-p (setq foo (generate-foo-some-how))))) (do-something-with-existing-file foo)) - Harald