Richard Stallman <[EMAIL PROTECTED]> writes:
> Ffile_exists_p ("/tmp/DELETEME")
> which returns nil because it calls stat ("/tmp/DELETEME")
>
> If "stat" was to be changed to "lstat" then the original problem would
> be fixed.
>
> But is that change desirable?
> What should (file-exists-p "/tmp/DELETEME") return when /tmp/DELETEME
> is a symlink that points to a non-existent file?
>
> Both operations are useful. If you want to test for
> a symlink to a nonexistent file, you can use file-symlink-p.
> It returns t in that case.
OK. So the fix needs to go somewhere else.
In order for me to find out what place should I fix, let's go back to
the original problem.
Does any of the following functions need to change?
(assume that /tmp/DELETEME is a symlink that points to a non-existent file)
(read-file-name-internal "/tmp/DELETEME" "/tmp" 'lambda)
currently returns nil. Should it return t?
(test-completion "/tmp/DELETEME" 'read-file-name-internal "/tmp")
currently returns nil. Should it return t?
Thanks
--dan
_______________________________________________
Emacs-pretest-bug mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug