[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange behavior of `file-exists-p` on latest Tramp version

From: Michael Albinus
Subject: Re: Strange behavior of `file-exists-p` on latest Tramp version
Date: Sun, 05 Mar 2023 09:29:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Ruiyang Wu <> writes:

> Hi,

Hi Ruiyang,

> On Tramp version ( (with Emacs 28.2), after setting (setq
> minibuffer-completing-file-name t), (file-exists-p "/ssh:") returns t,
> while (tramp-sh-handle-file-exists-p "/ssh:") returns 'Not a Tramp
> file name: "/ssh:"'.

tramp-sh-handle-file-exists-p should never be called with "/ssh:", it
isn't a remote file name. As the error message says. This is not a new behavior.

> On older versions of Tramp, (file-exists-p
> "/ssh:") always returns nil. This new behavior affects other
> completion systems like ivy-mode on melpa.

Yes, this has been changed for the benefit of Tramp method, user and
host name completion. See bug#37954, bug#51386, bug#52758, bug#53513,
bug#54042 and bug#60505.

I don't use ivy-mode. Could you pls give me a recipe that I can

Do you know another completion system which is affected?

> Best,
> Ruiyang

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]