[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: partial-completion-mode and deleting symlink problem
From: |
Dan Nicolaescu |
Subject: |
Re: partial-completion-mode and deleting symlink problem |
Date: |
Fri, 13 May 2005 13:50:29 -0700 |
Richard Stallman <address@hidden> 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
- partial-completion-mode and deleting symlink problem, Dan Nicolaescu, 2005/05/10
- Re: partial-completion-mode and deleting symlink problem, Dan Nicolaescu, 2005/05/12
- Re: partial-completion-mode and deleting symlink problem, Richard Stallman, 2005/05/13
- Re: partial-completion-mode and deleting symlink problem,
Dan Nicolaescu <=
- Re: partial-completion-mode and deleting symlink problem, Richard Stallman, 2005/05/14
- Re: partial-completion-mode and deleting symlink problem, Dan Nicolaescu, 2005/05/18
- Re: partial-completion-mode and deleting symlink problem, Richard Stallman, 2005/05/20
- Re: partial-completion-mode and deleting symlink problem, Stefan Monnier, 2005/05/20
- Re: partial-completion-mode and deleting symlink problem, Dan Nicolaescu, 2005/05/21
- Re: partial-completion-mode and deleting symlink problem, Richard Stallman, 2005/05/22