Subject: Re: bug#58360: 28.2; tramp-archive and file-directory-p

From: Gustavo Barros <[email-masked]>
Date: Fri, 07 Oct 2022 20:25:13 -0300

Hi Stefan,

On Fri, 07 Oct 2022 at 22:51, Stefan Kangas <[email-masked]> 
wrote:

> I can reproduce this on current master using:
>
>     0. touch /tmp/file.odt
>     1. emacs -Q --batch -eval \
>         '(message "%s" (file-directory-p (expand-file-name 
>         "/tmp/file.odt/")))'
>
> I get this output on stderr:
>
>     t
>     Tramp: Unmounting /tmp/file.odt
>
> Maybe Michael has some ideas (in Cc).

Thanks for checking.

Putting things in this form made me think of something else which might 
be worth discussing as well.  Running the predicate alone is enough to 
trigger the mounting of the file.  Isn't this overstepping?

Best regards,
Gustavo.