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#34221: [PATCH] Make project-files work with remote files Date: Sun, 27 Jan 2019 13:21:04 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="000000000000b379f005806f9885" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="219060"; mail-complaints-to="usenet@blaine.gmane.org" To: 34221@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 27 17:59:17 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 1gnnm8-000utG-C6 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Jan 2019 17:59:16 +0100 Original-Received: from localhost ([127.0.0.1]:47847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnnm7-0007n7-6T for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Jan 2019 11:59:15 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnnlv-0007kj-Lb for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 11:59:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnnlu-00017A-PP for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 11:59:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:48475) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnnlu-00016s-Lh for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 11:59:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gnnlu-0001Qu-K2 for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 11:59:02 -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: Sun, 27 Jan 2019 16:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34221 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.15486082855432 (code B ref -1); Sun, 27 Jan 2019 16:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Jan 2019 16:58:05 +0000 Original-Received: from localhost ([127.0.0.1]:47756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnnkz-0001PY-BA for submit@debbugs.gnu.org; Sun, 27 Jan 2019 11:58:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46365) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gnjRN-000137-CH for submit@debbugs.gnu.org; Sun, 27 Jan 2019 07:21:33 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:38733) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gnjRA-0001qT-6a for submit@debbugs.gnu.org; Sun, 27 Jan 2019 07:21:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gnjR9-0005rc-2c for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 07:21:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gnjR7-0001pR-Gi for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 07:21:18 -0500 Original-Received: from mail-vs1-xe34.google.com ([2607:f8b0:4864:20::e34]:37569) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gnjR7-0001oX-2J for bug-gnu-emacs@gnu.org; Sun, 27 Jan 2019 07:21:17 -0500 Original-Received: by mail-vs1-xe34.google.com with SMTP id n13so8258698vsk.4 for ; Sun, 27 Jan 2019 04:21:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=jZMNhPdFXI5zFQ81fx5M+BWXj44UgUnRAk+9VIBeh3g=; b=qWfAezER6YDM7DSipRdp2lFeTmzmQQVrIIiMksrR+AVEvZ6cqXVbhavpCrA6rEMHM7 yHzivnFlIuR4UHydLOskmBf+8qtCky7BThPtWAX6DfyvFM+iJCS4Z+DaCbzbfAW3xuvs hFkKr0nz1uRoB6au7bE4V0swCpQZiyRoB6rF/h8MDZczjeHR+59SGZVepUwETF3waqqf NfecphJzy+C1YoiyAzu3ZAK2WRFA3TSWl9kc93i8KBwYxr7hwUEwTtymk6eV0FMws7BZ Z5jctWN8btznkeyTU3aGQElYMdMjzj+H1QtVLht0TFeb1uznv1dgyLjEaPzt0wJF24/U T6QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=jZMNhPdFXI5zFQ81fx5M+BWXj44UgUnRAk+9VIBeh3g=; b=VjK0qJR5UZJLZiopopZxgkrYU2KVA0Wpr59BS5rngL5ToWPPLTFMTTKB+SyoPP/lJ+ vLwG0p1sfGmVrt8fCv+Mpb+o3sUd7IRiEIrWICQ4jxD8F1s72kcc/AQy2CRHowUP0yrN 3WMsaKlRpYSqkizjd3xKWCcAOYmmJapJV4WjGTDucCipDFi3tctvQDg0rJj5XRixW26r u63be4sfyQwaNaEInXP+edeNVTOmdAln4lJpsbfb9EpYBiNDJcNdLhYEc8oBWQ+F2672 zMFz5HFiW3igePkIvbnxmUfNV2e306h9jZ1dn7+KBkwMmkT2kmHzg4fYOK0J3rvZOLOx i3iA== X-Gm-Message-State: AJcUukeuFEUvXZYyK03Ui3EVDcEDySseDMzWQ7tLf1MWrTqPne2KVbIC royzcWtLJQ6D/e4ENHI5Hd2dmTmcdooxF/3tQxlwCw== X-Google-Smtp-Source: ALg8bN5puMwFGaZ9g6iGKPVZDYwnu33OkEyN9isYgO3R9tusiwkYD+z7HHPDXG+K1+P89WffCt3PS8e+yLCMsQFLMPU= X-Received: by 2002:a67:f481:: with SMTP id o1mr1431623vsn.173.1548591675168; Sun, 27 Jan 2019 04:21:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Sun, 27 Jan 2019 11:58:04 -0500 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:154816 Archived-At: --000000000000b379f005806f9885 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, I'd like project-files to work even if the project is located on a remote system. The patch attached is my attempt to achieve that. This is my first contribution to Emacs, so any feedback is welcomed. Thanks, Felici=C3=A1n --000000000000b379f005806f9885 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Make-project-files-work-with-remote-files.patch" Content-Disposition: attachment; filename="0001-Make-project-files-work-with-remote-files.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_jrev826c0 RnJvbSBjMmMyMzIyYjMxYTQyZWI2NzRmYTcyZTQ4ZGUwYzhmMWE4NTA3MTBmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBGZWxpY2lhbiBOZW1ldGggPGZlbGljaWFuLm5lbWV0aEBnbWFp bC5jb20+CkRhdGU6IFN1biwgMjcgSmFuIDIwMTkgMTM6MDI6MTAgKzAxMDAKU3ViamVjdDogW1BB VENIXSBNYWtlIHByb2plY3QtZmlsZXMgd29yayB3aXRoIHJlbW90ZSBmaWxlcwoKKiBsaXNwL3By b2dtb2Rlcy9wcm9qZWN0LmVsIChwcm9qZWN0LS1maWxlLXJlbW90ZS1uYW1lKQoocHJvamVjdC0t Y29tbWFuZC10by1zdHJpbmcpOiBOZXcgZnVuY3Rpb25zLgoocHJvamVjdC0tZmlsZXMtaW4tZGly ZWN0b3J5KTogVXNlIHRoZW0gdG8gc3VwcG9ydCByZW1vdGUgZmlsZXMuCi0tLQogbGlzcC9wcm9n bW9kZXMvcHJvamVjdC5lbCB8IDI2ICsrKysrKysrKysrKysrKysrKysrKysrLS0tCiAxIGZpbGUg Y2hhbmdlZCwgMjMgaW5zZXJ0aW9ucygrKSwgMyBkZWxldGlvbnMoLSkKCmRpZmYgLS1naXQgYS9s aXNwL3Byb2dtb2Rlcy9wcm9qZWN0LmVsIGIvbGlzcC9wcm9nbW9kZXMvcHJvamVjdC5lbAppbmRl eCAzNjAzZTc1MWZlLi44OWZlYzJhODA1IDEwMDY0NAotLS0gYS9saXNwL3Byb2dtb2Rlcy9wcm9q ZWN0LmVsCisrKyBiL2xpc3AvcHJvZ21vZGVzL3Byb2plY3QuZWwKQEAgLTE4NiwxMiArMTg2LDMw IEBAIHByb2plY3QtLWZpbmQtaW4tZGlyZWN0b3J5CiAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgKHByb2plY3QtLWRpci1pZ25vcmVzIHByb2plY3QgZGlyKSkpCiAgICAob3IgZGly cyAocHJvamVjdC1yb290cyBwcm9qZWN0KSkpKQogCisoZGVmdW4gcHJvamVjdC0tZmlsZS1yZW1v dGUtbmFtZSAocmVtb3RlLWZpbGUgbG9jYWwtZmlsZXMpCisgICJSZXR1cm4gTE9DQUwtRklMRVMg YXMgaWYgdGhleSB3ZXJlIG9uIHRoZSBzeXN0ZW0gb2YgUkVNT1RFLUZJTEUuIgorICAobGV0ICgo cmVtb3RlLWlkIChmaWxlLXJlbW90ZS1wIHJlbW90ZS1maWxlKSkpCisgICAgKGlmIChub3QgcmVt b3RlLWlkKQorICAgICAgICBsb2NhbC1maWxlcworICAgICAgKG1hcGNhciAobGFtYmRhIChmaWxl KQorICAgICAgICAgICAgICAgIChjb25jYXQgcmVtb3RlLWlkIGZpbGUpKQorICAgICAgICAgICAg ICBsb2NhbC1maWxlcykpKSkKKworKGRlZnVuIHByb2plY3QtLWNvbW1hbmQtdG8tc3RyaW5nIChj b21tYW5kKQorICAiRXhlY3V0ZSBzaGVsbCBjb21tYW5kIENPTU1BTkQgYW5kIHJldHVybiBpdHMg b3V0cHV0IGFzIGEgc3RyaW5nLgorU2ltaWxhciB0byBgc2hlbGwtY29tbWFuZC10by1zdHJpbmcn LCBidXQgY2FsbHMKK2Bwcm9jZXNzLWZpbGUtc2hlbGwtY29tbWFuZCcuIgorICAod2l0aC10ZW1w LWJ1ZmZlcgorICAgIChwcm9jZXNzLWZpbGUtc2hlbGwtY29tbWFuZCBjb21tYW5kIG5pbCB0KQor ICAgIChidWZmZXItc3RyaW5nKSkpCisKIChkZWZ1biBwcm9qZWN0LS1maWxlcy1pbi1kaXJlY3Rv cnkgKGRpciBpZ25vcmVzICZvcHRpb25hbCBmaWxlcykKICAgKHJlcXVpcmUgJ2ZpbmQtZGlyZWQp CiAgIChkZWZ2YXIgZmluZC1uYW1lLWFyZykKLSAgKGxldCAoKGNvbW1hbmQgKGZvcm1hdCAiJXMg JXMgJXMgLXR5cGUgZiAlcyAtcHJpbnQwIgorICAobGV0ICgoZGVmYXVsdC1kaXJlY3RvcnkgZGly KQorICAgICAgICAoY29tbWFuZCAoZm9ybWF0ICIlcyAlcyAlcyAtdHlwZSBmICVzIC1wcmludDAi CiAgICAgICAgICAgICAgICAgICAgICAgICAgZmluZC1wcm9ncmFtCi0gICAgICAgICAgICAgICAg ICAgICAgICAgZGlyCisgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbGUtbG9jYWwtbmFtZSBk aXIpCiAgICAgICAgICAgICAgICAgICAgICAgICAgKHhyZWYtLWZpbmQtaWdub3Jlcy1hcmd1bWVu dHMKICAgICAgICAgICAgICAgICAgICAgICAgICAgaWdub3JlcwogICAgICAgICAgICAgICAgICAg ICAgICAgICAoZXhwYW5kLWZpbGUtbmFtZSBkaXIpKQpAQCAtMjA1LDcgKzIyMyw5IEBAIHByb2pl Y3QtLWZpbGVzLWluLWRpcmVjdG9yeQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICIgIgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChzaGVsbC1xdW90 ZS1hcmd1bWVudCAiKSIpKSIiKQogICAgICAgICAgICAgICAgICAgICAgICAgICkpKQotICAgIChz cGxpdC1zdHJpbmcgKHNoZWxsLWNvbW1hbmQtdG8tc3RyaW5nIGNvbW1hbmQpICJcMCIgdCkpKQor ICAgIChwcm9qZWN0LS1maWxlLXJlbW90ZS1uYW1lCisgICAgIGRpcgorICAgICAoc3BsaXQtc3Ry aW5nIChwcm9qZWN0LS1jb21tYW5kLXRvLXN0cmluZyBjb21tYW5kKSAiXDAiIHQpKSkpCiAKIChk ZWZncm91cCBwcm9qZWN0LXZjIG5pbAogICAiUHJvamVjdCBpbXBsZW1lbnRhdGlvbiB1c2luZyB0 aGUgVkMgcGFja2FnZS4iCi0tIAoyLjExLjAKCg== --000000000000b379f005806f9885--