]> code.delx.au - gnu-emacs/blobdiff - lisp/dired.el
Merge from origin/emacs-25
[gnu-emacs] / lisp / dired.el
index 52386c91198f9547181b90cf1aae182955237648..63124fce5e5662371c3fe32a692eeddd47d74e91 100644 (file)
@@ -2810,7 +2810,9 @@ It runs the hook `dired-initial-position-hook'."
 (defun dired-current-directory (&optional localp)
   "Return the name of the subdirectory to which this line belongs.
 This returns a string with trailing slash, like `default-directory'.
-Optional argument means return a file name relative to `default-directory'."
+Optional argument means return a file name relative to `default-directory',
+in which case the value could be an empty string if `default-directory'
+is the directory where the file on this line resides."
   (let ((here (point))
        (alist (or dired-subdir-alist
                   ;; probably because called in a non-dired buffer