emacs-diffs
[Top][All Lists]
Advanced

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

master e0f3044: Doc string clarification in file-directory-p


From: Lars Ingebrigtsen
Subject: master e0f3044: Doc string clarification in file-directory-p
Date: Sun, 13 Sep 2020 09:34:07 -0400 (EDT)

branch: master
commit e0f304413c5a70a1aabbfc0236505e22f60fba80
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Doc string clarification in file-directory-p
    
    * src/fileio.c (Ffile_directory_p): Mention that "" is a special
    case (bug#43375).
---
 src/fileio.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/fileio.c b/src/fileio.c
index 1e4ca82..6d0bafa 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2919,6 +2919,11 @@ DEFUN ("file-directory-p", Ffile_directory_p, 
Sfile_directory_p, 1, 1, 0,
        doc: /* Return t if FILENAME names an existing directory.
 Return nil if FILENAME does not name a directory, or if there
 was trouble determining whether FILENAME is a directory.
+
+As a special case, this function will also return t if FILENAME is the
+empty string (\"\").  This quirk is due to Emacs interpreting the
+empty string (in some cases) as the current directory.
+
 Symbolic links to directories count as directories.
 See `file-symlink-p' to distinguish symlinks.  */)
   (Lisp_Object filename)



reply via email to

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