Subject: Re: bug#27982: 25.1.50; expand-file-name docstring on how to traverse the filesystem

From: Eli Zaretskii <[email-masked]>
Date: Sun, 06 Aug 2017 19:53:57 +0300

> From: Nicolas Richard <[email-masked]>
> Date: Sun, 06 Aug 2017 13:38:32 +0200
> 
> The docstring of expand-file-name suggest
> (directory-file-name (file-name-directory dirname))
> to traverse a directory

No, it only suggests that as a more reliable alternative to

  (expand-file-name ".." dirname)

> This looks wrong to me, e.g.
> (list current-directory
>       (directory-file-name (file-name-directory current-directory)))
>  => ("/home/youngfrog/" "/home/youngfrog")

This is not the use case against which the doc string tries to warn,

Thanks.