Subject: bug#34343: [PATCH] Make project--find-regexp-in-files work with remote files

From: Michael Albinus <[email-masked]>
Date: Sat, 28 Dec 2019 19:46:04 +0100

Dmitry Gutov <[email-masked]> writes:

> On 27.12.2019 19:57, Michael Albinus wrote:
>> file-local-name uses internally file-remote-p, which calls
>> expand-file-name if the connection is already established
>
> Why? If the caller needs an expanded name, they can call
> expand-file-name themselves. Or if they need an expanded local name:
>
>     (file-local-name (expand-file-name filename))
>
> Aside from performance problems, this feels like an inconsistent behavior.

I said already, that expand-file-name isn't needed for
file-local-name. I will try to find a better implementation.