From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Nikolay Kudryavtsev Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Tue, 5 Oct 2021 17:39:03 +0300 Message-ID: <11e8e147-092d-d840-4d55-005654ff603c@gmail.com> References: <5f584d83-ef45-9912-bfbc-d2f00b24b9fd@yandex.ru> <87pnahjgdr.fsf@linkov.net> <87ftb92u8q.fsf@thornhill.no> <0ab90cf2-eab2-6fea-6698-4164d7753cd7@yandex.ru> <87d06ck2b0.fsf@thornhill.no> <2fbe5d5d-03a1-212b-9dd7-4723e168ad06@yandex.ru> <5EpzudgjedeKADsX4_Tq-2WtNm3XKXmZjnEI7Y1lmw-Pcn_KrzKPD1o31Ele0JOIrZ1ITDdeQrOsJTHfGVPJlzyLhmqjxP3rmVVzou8KEBo=@thornhill.no> <2a70c748-e250-2f96-5d74-712b6d71e8be@yandex.ru> <871riitzch.fsf@gnus.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------6F17B8E38643BEF2C5BD653D" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34295"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 Cc: Zhu Zihao , Theodor Thornhill , 41572@debbugs.gnu.org, Juri Linkov To: Dmitry Gutov , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 17:01:08 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mXlwK-0008hH-3F for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 17:01:08 +0200 Original-Received: from localhost ([::1]:47318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXlwI-0006h9-EC for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 11:01:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXlbv-0002Gh-DY for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 10:40:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58296) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXlbu-0000QF-FN for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 10:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXlbu-0004xN-BE for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 10:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Nikolay Kudryavtsev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Oct 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41572 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41572-submit@debbugs.gnu.org id=B41572.163344475918993 (code B ref 41572); Tue, 05 Oct 2021 14:40:02 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 5 Oct 2021 14:39:19 +0000 Original-Received: from localhost ([127.0.0.1]:41609 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXlbD-0004wH-9x for submit@debbugs.gnu.org; Tue, 05 Oct 2021 10:39:19 -0400 Original-Received: from mail-lf1-f43.google.com ([209.85.167.43]:35825) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXlbB-0004w1-93 for 41572@debbugs.gnu.org; Tue, 05 Oct 2021 10:39:18 -0400 Original-Received: by mail-lf1-f43.google.com with SMTP id m3so85995641lfu.2 for <41572@debbugs.gnu.org>; Tue, 05 Oct 2021 07:39:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=lwGIVO0rhRhOD9wgZRMxIPphrYoTNuqhtFfOAOv47sE=; b=AFALYa3CNSrP1O5Pcd2nCyHr433/YMyBOJH0zGqABDgLlnT2qiInHtA8xqdUfDa+Bn yJWewlBlkETBTnrnhkX0V74n5NV9E4yxwPy+YXGpuONP5uLHosJ4mqXKgGmkDp5jRVkR 9NZmLRDvCid8n2/Fa/2I0goW9iWAXDU5WPCd1uhWhHMfZZsCClAR+rQKt9IuedHdatkv JqI9ybqKK3Vve1+omirorje6PMJF2p20K9JGBzH2i/w35/vtiShMelrPfv8y8BPmfKIj RSB9oEjmugLE9+9j6qxeMRNg+KIdDx29A4EqyDWJ0IHEkosLvI9VJ8gLVVvMRK6C/azX kTjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=lwGIVO0rhRhOD9wgZRMxIPphrYoTNuqhtFfOAOv47sE=; b=ltiAvouDnIihDWmuHN4IV+VFRTYOJSMWmxDTl2wKv04uEUnWt5NdvDK9tJQlRWS75H fENNKPu0w/OPSaPO//dOjFx/NnKE405JUeM00f25FXGMMeOirXn/Y9bOGbVbBDA6rwDr 5d6AY4OGhJLr1VE3/B+8Ug1hR6Uj7/AEeUwBOHmjOEmF7NOZXCW7p5XHAk2y9I4ty3Tp MKWrSezinDMUfphCXWQ8L9Km1fZo2TFWT/0jnOMeNeIX64hmDa8TrKygXzx+HlLEAUd5 L3XAEr9pHkPMbZrMBb1hkC2+CQ8IbnkENt7LGViViWmcxK3ir+Rf2nJMTIthwHPCnNdb Gq0w== X-Gm-Message-State: AOAM530wKGY7HQHbdEYMHpSpqcZSe44EXlqpDK5J4XG9prBvMvVebOHP Glze3Cn7M5ns0oeq837kd9s= X-Google-Smtp-Source: ABdhPJyArtJNYHn1rIDoej+2A4q8TdTESB/Nu6sOESBFVULfTIlFFum0KvWXrcpfk4+s76+ZDVRkug== X-Received: by 2002:a05:651c:2044:: with SMTP id t4mr3939662ljo.421.1633444745564; Tue, 05 Oct 2021 07:39:05 -0700 (PDT) Original-Received: from [192.168.199.3] (broadband-46-242-10-137.ip.moscow.rt.ru. [46.242.10.137]) by smtp.gmail.com with ESMTPSA id v11sm1923493ljg.62.2021.10.05.07.39.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 07:39:05 -0700 (PDT) X-Google-Original-From: Nikolay Kudryavtsev In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216460 Archived-At: This is a multi-part message in MIME format. --------------6F17B8E38643BEF2C5BD653D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hello. I have some stake in this issue too. The proposed patch is ok, but I think that we can go for a more ambitious solution here that would require just a little more work, but would be a lot more useful. Maybe lets have a make-file-backend function, the output of which you can cons onto project-find-functions, so any file defined like this would be just another separate backend. This function in turn can be used by major mode developers and users to implement project backends. If we look at the list of projects supported by Projectile , we can see that this one function is enough already to implement most of them. Having such file backends also leaves the question of whether the particular file should have a higher priority than VC to the end user, depending on where he(or some major mode he's using) adds a particular one into the list. As for whether there should be some kind of default file marked project, sure, the user can just remove it if he want to. --------------6F17B8E38643BEF2C5BD653D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

Hello. I have some stake in this issue too.

The proposed patch is ok, but I think that we can go for a more ambitious solution here that would require just a little more work, but would be a lot more useful.

Maybe lets have a make-file-backend function, the output of which you can cons onto project-find-functions, so any file defined like this would be just another separate backend.

This function in turn can be used by major mode developers and users to implement project backends. If we look at the list of projects supported by Projectile, we can see that this one function is enough already to implement most of them. Having such file backends also leaves the question of whether the particular file should have a higher priority than VC to the end user, depending on where he(or some major mode he's using) adds a particular one into the list.

As for whether there should be some kind of default file marked project, sure, the user can just remove it if he want to.

--------------6F17B8E38643BEF2C5BD653D--