diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-25 08:00:50 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2021-07-25 08:00:50 +0200 |
commit | aa9cba658768aba4da1b74ffb33d9962ffff5756 (patch) | |
tree | 39d07450a850e5b46687f18c367e64e723cbb7a3 /doc/lispref | |
parent | 03f844249cb15a8380d09041a537803c933a2769 (diff) | |
download | emacs-aa9cba658768aba4da1b74ffb33d9962ffff5756.tar.gz emacs-aa9cba658768aba4da1b74ffb33d9962ffff5756.tar.bz2 emacs-aa9cba658768aba4da1b74ffb33d9962ffff5756.zip |
Allow empty elements in directory-append
* doc/lispref/files.texi (Directory Names): Document it.
* src/fileio.c (Fdirectory_append): Allow empty elements.
Diffstat (limited to 'doc/lispref')
-rw-r--r-- | doc/lispref/files.texi | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 804cef292ee..e7a0ad2d06c 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -2355,7 +2355,9 @@ didn't end with a slash. @end group @end example -A zero-length directory or component is not allowed. +A @var{directory} or components that are @code{nil} or the empty +string are ignored---they are filtered out first and do not affect the +results in any way. This is almost the same as using @code{concat}, but @var{dirname} (and the non-final components) may or may not end with slash characters, |