diff options
| author | Eli Zaretskii | 2016-01-08 12:40:14 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-08 12:40:14 +0200 |
| commit | 30abf295e8add1afa3963de7bf4bae9aa2c71434 (patch) | |
| tree | 122858e90aa8f8c808d021b1cc1eb92b9156297e | |
| parent | e990bb270e574eb6d329056e28be9340d9a042ef (diff) | |
| download | emacs-30abf295e8add1afa3963de7bf4bae9aa2c71434.tar.gz emacs-30abf295e8add1afa3963de7bf4bae9aa2c71434.zip | |
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)
| -rw-r--r-- | lisp/dired.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 5b5b6f073df..e023da27be3 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2806,7 +2806,9 @@ It runs the hook `dired-initial-position-hook'." | |||
| 2806 | (defun dired-current-directory (&optional localp) | 2806 | (defun dired-current-directory (&optional localp) |
| 2807 | "Return the name of the subdirectory to which this line belongs. | 2807 | "Return the name of the subdirectory to which this line belongs. |
| 2808 | This returns a string with trailing slash, like `default-directory'. | 2808 | This returns a string with trailing slash, like `default-directory'. |
| 2809 | Optional argument means return a file name relative to `default-directory'." | 2809 | Optional argument means return a file name relative to `default-directory', |
| 2810 | in which case the value could be an empty string if `default-directory' | ||
| 2811 | is the directory where the file on this line resides." | ||
| 2810 | (let ((here (point)) | 2812 | (let ((here (point)) |
| 2811 | (alist (or dired-subdir-alist | 2813 | (alist (or dired-subdir-alist |
| 2812 | ;; probably because called in a non-dired buffer | 2814 | ;; probably because called in a non-dired buffer |