emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs-25 30abf29: Clarify doc string of 'dired-current-dir


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-25 30abf29: Clarify doc string of 'dired-current-directory'
Date: Fri, 08 Jan 2016 10:41:17 +0000

branch: emacs-25
commit 30abf295e8add1afa3963de7bf4bae9aa2c71434
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    Clarify doc string of 'dired-current-directory'
    
    * lisp/dired.el (dired-current-directory): Doc fix: clarify that
    the return value might not end in a slash when called with the
    optional argument non-nil.  (Bug#6273)
---
 lisp/dired.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lisp/dired.el b/lisp/dired.el
index 5b5b6f0..e023da2 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -2806,7 +2806,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



reply via email to

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