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: Thu, 24 Nov 2022 08:23:09 +0200 Message-ID: <83o7swyipe.fsf@gnu.org> References: <87zgcq68zp.fsf@ericabrahamsen.net> <878rkale3l.fsf@dfreeman.email> <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> 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="22260"; mail-complaints-to="usenet@ciao.gmane.io" Cc: dgutov@yandex.ru, monnier@iro.umontreal.ca, danny@dfreeman.email, eric@ericabrahamsen.net, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 24 07:23:33 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 1oy5dz-0005au-By for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Nov 2022 07:23:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy5dO-0007Pd-2W; Thu, 24 Nov 2022 01:22:54 -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 1oy5dM-0007PV-LA for emacs-devel@gnu.org; Thu, 24 Nov 2022 01:22:52 -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 1oy5dL-0003sP-TK; Thu, 24 Nov 2022 01:22:52 -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=m9Uf03zAkEjN8Y6Z1jb2hHFMdAxoL3ICFUSzCYe6/gc=; b=SgDaE7Yrw8aKW2Ki+rot BRn+5sUgdfubxpeM2GI7u0G2YwA+nCLBQKFVNdMVuBU5h9vT+2b4arXP5+JEOfSjcz+CG6EUXBbXA OpQEctSgDvksQXxYwa7f4Z9fLO4SZmc6iQS/7kkHW2rMgytQ3oYVTwC8MRHjaq1Vab8fDeiZ2Lu68 HOqNyhNkKeAt7h9JC6aOeLHvE3opUj+a1EdDHK8xeTUgGnIUV1HEiz+ImqGhic/j9G+jamVOFnW19 78v1Iq9lS5pYL9TuEkRA8LJpjpHFu9IOY4+Jj7RdS+c+ZfJ7Bb3HUldGgt+78sOSyPtOkt+I4RLqO TOryssRgiimJeg==; 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 1oy5dL-0002ZH-C7; Thu, 24 Nov 2022 01:22:51 -0500 In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Wed, 23 Nov 2022 20:33:04 +0000) 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:300429 Archived-At: > From: João Távora > Date: Wed, 23 Nov 2022 20:33:04 +0000 > Cc: Stefan Monnier , > Danny Freeman , > Eric Abrahamsen , emacs-devel > > (defun joaot/sub-projects (dir) > (let* ((super (project-current)) > (super-root (project-root super)) > (relative (file-relative-name dir super-root)) > (d (car (split-string relative "/")))) > (when (member d '("lisp" "src")) > (cons 'transient (expand-file-name (concat d "/") super-root))))) Is this okay for code outside project.el to know the internal structure of a project object in general, and in particular cons "by hand" a 'transient' project object? I thought this was a closely-guarded implementation detail that even doc strings are not allowed to divulge?