|
From: | Elvin Peterson |
Subject: | Re: read-file-name |
Date: | Wed, 21 Apr 2004 09:13:49 +0530 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 |
Kevin Rodgers wrote:
Elvin Peterson wrote: > Thanks. The default is not an issue when the directory DIR is an > absolute path. Shouldn't it show up in the read-file-name > documentation? I don't see any difference in the behavior of read-file-name when DIR is an absolute vs. relative path. If I type RET at the prompt, both of these forms return DIR:
Yes, the behavior is the same if you press RET. However, it is completely different for TAB completion, where the first one fails in tha absence of the let workaround.
(read-file-name "Image File: " "images") (read-file-name "Image File: " "/images") P.S. You probably want to use "images/" as DIR anyway -- see file-name-as-directory.
I have done that, although it only seems to make a difference for VMS.
[Prev in Thread] | Current Thread | [Next in Thread] |