GNU bug report logs - #79236
30.1; file-directory-p in read-file-name prevents TRAMP protocol, user, and host completions

Previous Next

Package: emacs;

Reported by: "Timothy J. Miller" <tmiller <at> mitre.org>

Date: Thu, 14 Aug 2025 13:38:02 UTC

Severity: normal

Tags: patch

Found in version 30.1

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Full log


Message #11 received at 79236 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Dmitry Gutov <dmitry <at> gutov.dev>
Cc: 79236 <at> debbugs.gnu.org, tmiller <at> mitre.org, michael.albinus <at> gmx.de
Subject: Re: bug#79236: 30.1;
 file-directory-p in read-file-name prevents TRAMP protocol, user, and
 host completions
Date: Fri, 15 Aug 2025 09:08:09 +0300
> Date: Fri, 15 Aug 2025 04:44:05 +0300
> From: Dmitry Gutov <dmitry <at> gutov.dev>
> 
> Timothy, thanks for the report.
> 
> Michael, what do you think? Could this be fixed in Tramp's completion, 
> or is there maybe a better way to use read-directory-name from 
> project-prompt-project-dir?

Careful: there be dragons.  We don't want Tramp to load and do its
thing when there's no reason to expect remote files and directories
are relevant, because that slows down completion when the user only
wants to visit a local file or directory.  There was such a problem
some years ago, and Michael fixed it.

So whatever you do for this case, be sure not to cause regressions in
the use cases where the user just wants to visit local files: Tramp
should neither load nor attempt to connect to remote servers in that
case.




This bug report was last modified 8 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.