emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: partial-completion-mode and deleting symlink problem


From: Richard Stallman
Subject: Re: partial-completion-mode and deleting symlink problem
Date: Fri, 13 May 2005 12:09:26 -0400

    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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]