A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://lists.gnu.org/archive/html/emacs-devel/2022-11/msg01682.html below:

Re: Subprojects in project.el

On 26/11/22 11:23, João Távora wrote:
> Dmitry Gutov <dgutov@yandex.ru> writes:
>
.

Previously you said:

 > Fwiw, Danny's tip is what I used at a recent day job gig for defining


subprojects in a 400k files repo.

where Danny's snippet looked like:

   (defun project-find-project.el (dir)


     "Returns a `manual-project' instance if the project of the current
   DIR has a .project.el file in its root directory."
     (let ((root (locate-dominating-file dir ".project.el")))
       (when root
         (cons 'transient root))))

   (add-hook 'project-find-functions #'project-find-project.el)

...but you didn't use marker files? Or you don't want to use them


anymore? I'm really confused here.

Don't be confused, this is not hard.  I used code similar to Danny's, meaning i used a similar function that uses eglot-lsp-context (which you omitted) but it uses simply path names. I can't use marker files in that large project nor do I want or need to.  I don't have a way to choose the subject of project operations, hence all this discussion. 

João


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4