From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project Date: Tue, 5 Oct 2021 18:03:49 +0300 Message-ID: <290a72b8-1e00-2e61-5665-a9bc2ca4289b@yandex.ru> 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> <11e8e147-092d-d840-4d55-005654ff603c@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32260"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 Cc: Zhu Zihao , Theodor Thornhill , 41572@debbugs.gnu.org, Juri Linkov To: Nikolay Kudryavtsev , Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 05 17:16:18 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 1mXmB0-00087S-23 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 17:16:18 +0200 Original-Received: from localhost ([::1]:48374 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXmAy-0001hY-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Oct 2021 11:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXm07-0003KX-3x for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 11:05:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXm06-0002On-Q8 for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 11:05:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXm06-0005bL-Io for bug-gnu-emacs@gnu.org; Tue, 05 Oct 2021 11:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Oct 2021 15:05: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.163344625521467 (code B ref 41572); Tue, 05 Oct 2021 15:05:02 +0000 Original-Received: (at 41572) by debbugs.gnu.org; 5 Oct 2021 15:04:15 +0000 Original-Received: from localhost ([127.0.0.1]:41619 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXlzK-0005aA-Hr for submit@debbugs.gnu.org; Tue, 05 Oct 2021 11:04:14 -0400 Original-Received: from mail-lf1-f41.google.com ([209.85.167.41]:42570) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXlzD-0005Zi-SU for 41572@debbugs.gnu.org; Tue, 05 Oct 2021 11:04:12 -0400 Original-Received: by mail-lf1-f41.google.com with SMTP id x27so86829719lfa.9 for <41572@debbugs.gnu.org>; Tue, 05 Oct 2021 08:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Hev1+o+alyTRQs+kT9WhH1oMzMJqWUh7wM3AGjK8P1U=; b=G3U6q0wY/4TaK2UdKcEnMu7kNHEGa0edEAMY8wIMCr2nMGT3vx4PlnEIiRNIKXgjZi cI4LlW/yhnmvLS0Ag3LoJcz0zwbLsDDdzuxYozvyCO9wvHh3RSD69VhYSsc7D/ONpsiS fDAvkPm6NbUs8AxGM5H1kbNZPtPg7d72JZorZ/LRvIxwMjGQOAPs3kQ+ONptql5encHv MVDJiUwLipHHc0eG6veQeAX4C0MOUqJSiVOt8/8s/OywJ8gLkuN8v/J84VatrZG7xNxW pPK0uMl2Ets7oWyP4MtOrCdtEr4WlxCkZkIU4VCF88fes35r9YpzjpJ2irWXuOO/sCfY ktbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Hev1+o+alyTRQs+kT9WhH1oMzMJqWUh7wM3AGjK8P1U=; b=ZX7cFPEJ50JtBrleuFTHZfu1E6B9Ht9BFplPYkLELdgo2MNHZP09/yxv9GFZMJVVdx GdPVNRdENZB3wYra8IjLIHDda/hAox8oOC7XSXuINBsocXBpiLjw7KPdO82JnfKDRBMh C1GQfPqmmaqZvqWYudrRX8GoJJfRABJvOwewP9dvVTyaHOpqUsYn79wXztqTgIQwz2do 52uiKamrYPJuR6vojCwc03ck+a8SnVrRXBXCzmm1pd+vGFgvrB8QZXQCuqOhE5NhI4Lv Vlwc4UCW8m0A4yWd6duZviKlCy71IVZut9Oh2nF9XhUaCwoPuhveDnLLTDjHE6hcCUQD D7ew== X-Gm-Message-State: AOAM533SDvh9+oS2///fbCrLUS+OjSQ7IPavOtqLbd9d1NMeUYvlP/f2 oNlCOdVw/fbfokS+svHy1LU= X-Google-Smtp-Source: ABdhPJxh6J3r4b9gTA/Pqx8k5AEdLms0yu7DNggt7X8tjgTOVS0/nuo5HhLwD0VlhwGZXwr+6FigwA== X-Received: by 2002:a2e:a26b:: with SMTP id k11mr23356126ljm.185.1633446231221; Tue, 05 Oct 2021 08:03:51 -0700 (PDT) Original-Received: from [192.168.1.113] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id 8sm1993469ljr.10.2021.10.05.08.03.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Oct 2021 08:03:50 -0700 (PDT) In-Reply-To: <11e8e147-092d-d840-4d55-005654ff603c@gmail.com> 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:216462 Archived-At: Hi Nikolay, On 05.10.2021 17:39, Nikolay Kudryavtsev wrote: > 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. Is this pretty much to be able to choose the backends order? I'm afraid it's not a good idea: any backend that comes before the VC backend can make the user experience worse. Because Git-based (fast) file listing is only implemented for the VC backend. > As for whether there should be some kind of default file marked project, > sure, the user can just remove it if he want to. And you can customize which file names serve as markers.