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

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

Re: dired-compare-directories


From: Luc Teirlinck
Subject: Re: dired-compare-directories
Date: Fri, 25 Mar 2005 21:19:17 -0600 (CST)

Juri Linkov wrote:

   For example, after typing RET in the minibuffer
   in the default directory "~/dir1/" after calling:

   (read-directory-name "Directory: " "~/dir2/")

   it returns "~/dir1/" instead of "~/dir2/" as would be more correct.

Is this behavior not consistent with the description of the function
in `(elisp)Reading File Names'?

 -- Function: read-directory-name prompt &optional directory default
          existing initial
     This function is like `read-file-name' but allows only directory
     names as completion possibilities.

     If DEFAULT is `nil' and INITIAL is non-`nil',
     `read-directory-name' constructs a substitute default by combining
     DIRECTORY (or the current buffer's default directory if DIRECTORY
     is `nil') and INITIAL.  If both DEFAULT and INITIAL are `nil',
     this function uses the current buffer's default directory as
     substitute default, ignoring DIRECTORY.

I do not know whether anything relies on this behavior, but before
making any incompatible change this close before a release, one would
better be really extra careful.  Any change would of course, have to
be accompanied by a change in the above description.

Sincerely,

Luc.





reply via email to

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