Subject: bug#10489: 24.0.92; dired-do-copy may create infinite directory hierarchy

From: Thierry Volpiatto <[email-masked]>
Date: Wed, 29 Feb 2012 18:52:56 +0100

Stefan Monnier <[email-masked]> writes:

>> Maybe we could change the entry in files.texi like this:
> [...]
>>   @defun file-equal-p file1 file2
>>   This function returns @code{t} if the files @var{file1} and
>> ! @var{file2} name the same file.  If @var{file1} or @var{file2} does
>> ! not exist, the return value is unspecified.
>
> That looks good.
What can be done also is to return a string in this case.
So possible return values could be e.g:
"unspecified" => mean one of the files doesn't exists.
nil           => files exist and are not equal
t             => files exist and are equal.

>> ! If two files are equal, it does not imply that both file names specify
>> ! accessible files.  For example, @file{/sudo::/foo/bar} might be
>> ! accessible, but @file{file:///foo/bar} might not.  (@pxref{Remote
>> ! Files,, Remote Files, emacs, The GNU Emacs Manual}, and
>> ! @pxref{Supported URL Types,, Supported URL Types, url, URL
>> ! Programmer's Manual})
>
> I'd rather not get into such issues in the doc.
>
>
>         Stefan

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997