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: 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




reply via email to

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