From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Subprojects in project.el (Was: Eglot, project.el, and python virtual environments) Date: Fri, 25 Nov 2022 21:45:02 +0200 Message-ID: <83zgceu8ch.fsf@gnu.org> References: <87zgcq68zp.fsf@ericabrahamsen.net> <4c5f4b07-3df6-d700-83f8-9a9d1b684afc@yandex.ru> <84781346-5b88-2be5-38bb-02696fcf1364@yandex.ru> <87o7t2vj19.fsf@dfreeman.email> <877czqtyfy.fsf@dfreeman.email> <87zgcml7g7.fsf@gmail.com> <2ba04533-097a-a1da-ff3f-2c9506fd488e@yandex.ru> <875yf9bbzb.fsf@gmail.com> <87wn7oa0aw.fsf@gmail.com> <7a5b76fd-fb15-8c1e-ea29-bf11f7e0d2ae@yandex.ru> <87bkoya815.fsf@gmail.com> <0024a67d-b8e5-b35c-1b22-82541a170eb3@yandex.ru> <871qptai4d.fsf_-_@gmail.com> <83o7swyipe.fsf@gnu.org> <83sfi7v6dj.fsf@gnu.org> <45549e6b-942f-ee99-9123-8176545a159e@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25148"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joaotavora@gmail.com, monnier@iro.umontreal.ca, danny@dfreeman.email, eric@ericabrahamsen.net, emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 20:45:02 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oyedA-0006Io-Jh for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 20:45:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyecs-0005sI-WC; Fri, 25 Nov 2022 14:44:43 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyecr-0005s9-DA for emacs-devel@gnu.org; Fri, 25 Nov 2022 14:44:41 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyecq-0002lB-0K; Fri, 25 Nov 2022 14:44:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=GGRNj6jdFqcPbRDcLEgu9yPnSCQs1IkhG5609GC6txk=; b=W6AUqQ6koHncnVg21GVT NKM2CeKOSjOkw9J7fCYVwWQUr/avdowoMcJwmRBnZ376Mm9gJNAr97oZhA4spM4fkp4KXHzLg9Luu idpCSKp4p+72cOWndmtJTRKEVRybfz/QrtqdW/TsAQQRSjbBt6GXm6AOX4A67Qk7BEQ0gytnSquYn uE3G1DJ+hGPdpeaw4Qz26885clVuVlcGTZGi6qUZx6TI6X3e1DF/1o4FC9d2zARIdbfwPszdCIXnR eYgwjkWpRr6J97/ThFcYaLtqOXj17Zp2ltdbcvTJafjWrUY1s351YYhAyGc7pNzTw+9qWHv9e7NkG Es3gfKuJ5Cnq7Q==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyecp-0005M2-70; Fri, 25 Nov 2022 14:44:39 -0500 In-Reply-To: <45549e6b-942f-ee99-9123-8176545a159e@yandex.ru> (message from Dmitry Gutov on Fri, 25 Nov 2022 19:24:26 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:300512 Archived-At: > Date: Fri, 25 Nov 2022 19:24:26 +0200 > Cc: joaotavora@gmail.com, monnier@iro.umontreal.ca, danny@dfreeman.email, > eric@ericabrahamsen.net, emacs-devel@gnu.org > From: Dmitry Gutov > > On 25/11/22 09:30, Eli Zaretskii wrote: > > I'm probably missing something: how does a Lisp program construct an > > instance of a project with a known backend? For example, if the project is > > of the 'transient' kind, how would such a Lisp program go about constructing > > an instance without exposing/knowing about the internals of the project > > object? I see no generic make-project API that such a Lisp program could > > call. What did I miss? > > The Lisp program that constructs instances of 'transient' is > 'project-current'. I meant to ask about building customized project objects, not the standard ones that are already created by project-current. This started with a function João wrote to that effect, and he wrote it, AFAIU, because the standard kinds of project objects didn't satisfy his needs. > The program that creates instances of 'vc' type is called > 'project-try-vc'. But we could similarly add a generic method belonging > to the same unit of code (called 'project-subprojects') which would > "belong" to the VC project backend and create a list of instances of its > type. Again, you are talking about project kinds already supported by project.el as its built-ins. I'm asking how to produce a project of a custom type.