diff options
| author | Lars Ingebrigtsen | 2020-09-13 15:33:58 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2020-09-13 15:33:58 +0200 |
| commit | e0f304413c5a70a1aabbfc0236505e22f60fba80 (patch) | |
| tree | df1ee08d21042c8e3e2a8adf4f8f1b5ab5e2d046 /src | |
| parent | 2605eb9d0ef7e819126e78684bd105c8cd27aff8 (diff) | |
| download | emacs-e0f304413c5a70a1aabbfc0236505e22f60fba80.tar.gz emacs-e0f304413c5a70a1aabbfc0236505e22f60fba80.zip | |
Doc string clarification in file-directory-p
* src/fileio.c (Ffile_directory_p): Mention that "" is a special
case (bug#43375).
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 1e4ca82e5f3..6d0bafa8cf9 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, | |||
| 2919 | doc: /* Return t if FILENAME names an existing directory. | 2919 | doc: /* Return t if FILENAME names an existing directory. |
| 2920 | Return nil if FILENAME does not name a directory, or if there | 2920 | Return nil if FILENAME does not name a directory, or if there |
| 2921 | was trouble determining whether FILENAME is a directory. | 2921 | was trouble determining whether FILENAME is a directory. |
| 2922 | |||
| 2923 | As a special case, this function will also return t if FILENAME is the | ||
| 2924 | empty string (\"\"). This quirk is due to Emacs interpreting the | ||
| 2925 | empty string (in some cases) as the current directory. | ||
| 2926 | |||
| 2922 | Symbolic links to directories count as directories. | 2927 | Symbolic links to directories count as directories. |
| 2923 | See `file-symlink-p' to distinguish symlinks. */) | 2928 | See `file-symlink-p' to distinguish symlinks. */) |
| 2924 | (Lisp_Object filename) | 2929 | (Lisp_Object filename) |