bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emac


From: Nikolay Kudryavtsev
Subject: bug#41572: 28.0.50; [PATCH] Support plain project marked with file .emacs-project
Date: Tue, 5 Oct 2021 17:39:03 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]