Stefan Monnier writes: >>> So the (not (string-empty-p fn)) test just reflects the tool's semantics >>> and is not an artifact of some suboptimal behavior of file-exists-p. >> I gree, but there is not a line about empty strings in doc-string. >> It is great that this is mentioned in documentation, but anyway >> behaviour was quite unexpected > > The problem is that docstrings describe the behavior of a specific > function, so they usually don't mention the more general aspects that > affect all functions of a given subsystem, such as here the general > treatment of the empty string when used as a file name. > > Otherwise, every file-name-manipulating function would have to repeat > this information in its docstring. What about the appended patch? It does not touch the docstrings, but it explains the situation more verbose in the Lisp manual. > Stefan Best regards, Michael.