Subject: 31.0.50; ffap does not find the correct filename in remote projects

From: Liu Hui <[email-masked]>
Date: Mon, 30 Jun 2025 22:47:10 +0800

Hi,

The following recipe is extracted from bug#78925:

1. emacs -Q
2. Open a file in a remote project:
   C-x C-f /ssh:server:~/a_git_project/test_file
3. Create a file that exists outside the project in the remote host, e.g.
   M-! touch /tmp/abc
4. type the above filename (i.e. /tmp/abc) in test_file, and M-x ffap

ffap prompts /ssh:server:~/a_git_project/tmp/abc, while in Emacs 29
prompts /ssh:server:/tmp/abc correctly. This problem seems to be
related to commit 1eae0e7edf4.

Thanks.

--
Liu Hui