From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.emacs.devel Subject: Re: (file-exists-p "") --> t?? Date: Mon, 27 Apr 2009 08:16:05 -0400 Message-ID: References: <20090427.141242.873398455467769355.hanche@math.ntnu.no> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1240835025 18605 80.91.229.12 (27 Apr 2009 12:23:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 12:23:45 +0000 (UTC) Cc: emacs-devel@gnu.org To: Harald Hanche-Olsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 27 14:23:38 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 1LyPmY-0003Uu-0z for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 14:17:59 +0200 Original-Received: from localhost ([127.0.0.1]:51716 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPmX-0005Gt-5D for ged-emacs-devel@m.gmane.org; Mon, 27 Apr 2009 08:17:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LyPkn-0004eV-IQ for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:16:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LyPkj-0004d0-Sj for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:16:09 -0400 Original-Received: from [199.232.76.173] (port=50653 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LyPkj-0004ct-LG for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:16:05 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:46670) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LyPkj-0000TQ-CF for emacs-devel@gnu.org; Mon, 27 Apr 2009 08:16:05 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LyPkj-00074Y-2L; Mon, 27 Apr 2009 08:16:05 -0400 In-reply-to: <20090427.141242.873398455467769355.hanche@math.ntnu.no> (message from Harald Hanche-Olsen on Mon, 27 Apr 2009 14:12:42 +0200 (CEST)) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:110487 Archived-At: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Date: Mon, 27 Apr 2009 14:12:42 +0200 (CEST) Cc: emacs-devel@gnu.org From: Harald Hanche-Olsen Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii + "Alfred M. Szmidt" : > Is it intended that file-exists-p returns t for the empty string? I don't know if it is intended or not, but it does make some sort of sense: Try (find-file "") to see for yourself what you get. 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))))