From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Felici=C3=A1n_?= =?UTF-8?Q?N=C3=A9meth?= Newsgroups: gmane.emacs.bugs Subject: bug#34343: [PATCH] Make project--find-regexp-in-files work with remote files Date: Wed, 6 Mar 2019 08:47:00 +0100 Message-ID: References: <9d65284f-7a64-5e9c-ab02-fbbd1be41689@yandex.ru> <87r2bt1tio.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="13963"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34343@debbugs.gnu.org, Dmitry Gutov To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 06 08:48:18 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1RHl-0003YK-Q7 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2019 08:48:17 +0100 Original-Received: from localhost ([127.0.0.1]:55857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1RHk-00008V-Iu for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Mar 2019 02:48:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h1RHX-00008C-Sw for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2019 02:48:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h1RHW-0004l6-Jc for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2019 02:48:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48387) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h1RHW-0004ko-0p for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2019 02:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h1RHV-0003GA-Ra for bug-gnu-emacs@gnu.org; Wed, 06 Mar 2019 02:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Felici=C3=A1n_?= =?UTF-8?Q?N=C3=A9meth?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Mar 2019 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34343 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 34343-submit@debbugs.gnu.org id=B34343.155185844012472 (code B ref 34343); Wed, 06 Mar 2019 07:48:01 +0000 Original-Received: (at 34343) by debbugs.gnu.org; 6 Mar 2019 07:47:20 +0000 Original-Received: from localhost ([127.0.0.1]:33698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1RGp-0003F6-Mt for submit@debbugs.gnu.org; Wed, 06 Mar 2019 02:47:19 -0500 Original-Received: from mail-vs1-f52.google.com ([209.85.217.52]:45479) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h1RGn-0003Es-85 for 34343@debbugs.gnu.org; Wed, 06 Mar 2019 02:47:17 -0500 Original-Received: by mail-vs1-f52.google.com with SMTP id n14so1647143vsp.12 for <34343@debbugs.gnu.org>; Tue, 05 Mar 2019 23:47:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=0mgZs5/xsllTpPKdJTinvEGC8lBPTYAOW45U2KJgPCE=; b=XjYECzUEijd89yHp610LxNjSoCmcy65IFBkaBuclQ6WhwTfuRU8ur1nK1BTf1V5uOm Pf9nNmsgl71nL3NReg5nuiXy4jFiXUvUNW2K0inBlfhgaauCY6sAMYa4lHSd9LFeHtr8 t+VgvkFlRWd9aOJShEIQPrd8MJ6BYoZQZi/dFzpTeoijsGEBCgiZW9Dd5LUSlZdQgvRl pwkMdZGZ8D1BQh9PihOMaFbTLr3mbV5E4axMT3bGzNSHD4XE69TyPJCvTAnhIrKc6ATc bpjrVst67EPz0Q9AeSlp6xU/GNq3Jg52Y6C9ryD5ho8hINjXdOMUOuZ4XJ1s9jmxxu/S DKQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=0mgZs5/xsllTpPKdJTinvEGC8lBPTYAOW45U2KJgPCE=; b=fsxdzh9NTO+Yoo1ZZ4S/uvoQ/eWAX3WrkpXSxoekuEjkr/1mh5uzry3towwxGrKs7R ObFp+rZWovhtxKLAg+wiwRJRlZarMLgxSHlVRRnB5fd+poybMhpeFB/TV5NFnUCCwYjn a4P/eHuPAMFBkJIInC1mEScEF12FjsGibfgQMYzMNEdkJSeA4kB2X+9/xJJ1thmKNUyK dB0sOap/ferfxNKNxi51RbYMaVozRT3DImtp0OjxWRfquIWicxFgyZ4aAi8PkmRrT2vO WuEO1gQZ3DTNEAnMg84cxDT8ZRd1pxv2QLk89lrYSRbDWIUpXfEwXu3ZfO5fKvV6Tr5t VRUw== X-Gm-Message-State: APjAAAVoN0kCeZLkh2rSLBymNGJVN+u+x1YICaUBRvKaa2jLD6fZnszr u7UbLRa45E7qc1NQuFrFQuKNMAvRj9RIHqex2ts= X-Google-Smtp-Source: APXvYqw3vw9jDChiS6tMVmLvnCGUFXbCvDjRMa1PBFxTC0TAXwo2gjYuUGwtEQybMq/72Jbd09uFcgNxVeUfkqyomyg= X-Received: by 2002:a67:7dd1:: with SMTP id y200mr2917035vsc.96.1551858431611; Tue, 05 Mar 2019 23:47:11 -0800 (PST) In-Reply-To: <87r2bt1tio.fsf@gmx.de> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156087 Archived-At: Hi Dmitry, > > Some kind of alternative would be to only use the local names until > > the end, and keep the remote id in one place only. E.g. in > > default-directory. > > Well, I don't know the internal logic in project.el. But indeed, it is > an option to work only with the local file names, and to prepend the > remote part of default-directory at the very end to the results. This > must be done consequently, everywhere. So how do you envision remote system support in project.el? One possibility is to have two new defgenerics, project-local-files and project-remote-id, and to use those internally. But I don't see how project-files could be changed in a backward compatible manner. New/updated backends don't have to implement p-files, because the result can be constructed using p-local-files and p-remote-id. But for old backends that only implement project-files it's the other way around: p-local-files and p-remote-id should rely on p-files to calculate their return values. What do you think? Thanks, Felici=C3=A1n