From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.devel Subject: Re: (file-exists-p "") --> t?? Date: Mon, 27 Apr 2009 14:25:06 +0200 Message-ID: <7b501d5c0904270525i70160940m9f389a38b4e68212@mail.gmail.com> References: <20090427.141242.873398455467769355.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1240835271 19753 80.91.229.12 (27 Apr 2009 12:27:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 12:27:51 +0000 (UTC) Cc: Harald Hanche-Olsen , emacs-devel@gnu.org To: "Alfred M. Szmidt" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 14:27:43 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 1LyPuD-0002qv-Rj for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 14:25:54 +0200 Original-Received: from localhost ([127.0.0.1]:44545 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPuD-0002qq-A0 for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 08:25:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyPtc-00029A-2x for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:25:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyPtW-0001xP-Lv for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:25:14 -0400 Original-Received: from [199.232.76.173] (port=45571 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPtW-0001wz-1f for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:25:10 -0400 Original-Received: from mail-fx0-f169.google.com ([209.85.220.169]:58421) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyPtU-00026F-D2; Mon, 27 Apr 2009 08:25:08 -0400 Original-Received: by fxm17 with SMTP id 17so2391920fxm.42 for ; Mon, 27 Apr 2009 05:25:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=YrT3tlXwk3A/WkOnP95Fd2OVFcLvenmK+5IupWjY8pw=; b=VJmnY4gx+MxObZxmTU0UR539S7jFrar6XWYyOUPwNLN3BO8Sjwt/0VYQ5E8jwg/bGE pAbsXRihW1tV/4eUKtasBDvVYH4v9X9YVOT/61euLDD8ERkVXMFuuJpG4jJp1lxIWX/4 nLoB1pMLdRm20MV9rILQmaif5HsxvCGjg4aQg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=a05kURcQq5qlTXHcX4FmLa49VQnwWgo4VX9NzqVJfPrx69uAcGAfDYBS9r3MoSd1zh qlVC8XfWjvgZiu7+X4jwUFLF3uO/IypRmp+jmrQROVVYqBzUn+3uxXMPvNdjO0JaZigG XhDKRTUIWK+bCvb6j5EJzbgtVtrK6LDPJ47Ig= Original-Received: by 10.86.51.2 with SMTP id y2mr3244698fgy.3.1240835106210; Mon, 27 Apr 2009 05:25:06 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:110489 Archived-At: 2009/4/27 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 "")) > =A0(while (not (file-exists-p foo)) > =A0 =A0(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)))) -- Deniz