Subject: Re: bug#78929: 31.0.50; ffap does not find the correct filename in remote projects
From: Eli Zaretskii <[email-masked]>
To: Liu Hui <[email-masked]>
Cc: [email-masked], [email-masked]
Date: Sat, 05 Jul 2025 12:20:44 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> From: Liu Hui <[email-masked]>
> Date: Fri, 4 Jul 2025 12:54:55 +0800
> Cc: Eli Zaretskii <[email-masked]>, [email-masked]
> 
> On Fri, Jul 4, 2025 at 2:02 AM Spencer Baugh <[email-masked]> wrote:
> >
> > Eli Zaretskii <[email-masked]> writes:
> >
> > >> 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.
> > >
> > > Spencer, could you please look into this?
> >
> > Thanks for the report, this is indeed a bug in ffap-in-project.  This
> > should be fixed by the attached patch, could you please test?
> 
> I confirm the issue is fixed, thanks!

Thanks, installed on the master branch, and closing the bug.