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.devel Subject: Re: Subprojects in project.el Date: Sat, 26 Nov 2022 00:29:11 +0200 Message-ID: <97acd6b7-c9f1-da25-d23e-8a8e45239ddc@yandex.ru> References: <87zgcq68zp.fsf@ericabrahamsen.net> <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> <86bkowdjx5.fsf@gmail.com> <43aa2f10-d947-dfcd-82b0-f6f1be3aaaec@yandex.ru> <466bbd65-a7ae-4a29-b25a-e91c44695dad@app.fastmail.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="16528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: Emacs Devel To: Stefan Monnier , Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 23:29:58 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 1oyhCo-00049N-2e for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 23:29:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyhCE-0003lS-5h; Fri, 25 Nov 2022 17:29:22 -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 1oyhCC-0003lH-8i for emacs-devel@gnu.org; Fri, 25 Nov 2022 17:29:20 -0500 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyhC8-0001iQ-Ig for emacs-devel@gnu.org; Fri, 25 Nov 2022 17:29:18 -0500 Original-Received: by mail-wr1-x42f.google.com with SMTP id n3so8634525wrp.5 for ; Fri, 25 Nov 2022 14:29:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=mfsLArnM+sKCt2nYqRwVTmk4cdwNyjKaWcJjugAncTA=; b=AbDAxE5pD3EuOd6ha+ph5munXBGcQE4SHojYKvrqUHyCRDtF57sLaHaG9r18kQCBCD bC3OaUx9mYTHyp5DgD6KYwxemV24SZe3WgeiWFX3BeG3doE2Ss4WjTw3D9knYMWQ6r8n mwfeEUPc9FCv9oBkXzQAMzplmPagE9pp9EEXMSVBK1irJz2LNZA+dyaOpkqkPC1n97Mf EpiOFybtnKuW/kaCCDEuVuyVww982hMz6vyUT+qkoyuAqXe+8G6+rgGaOg1XKLimToJU 1LWccaRQV14fVO7kYUjYEFxDLWqxlnvEF/BxqYD/oU7RVFAjZL2gqEebwbOIZoVviHXl r8Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mfsLArnM+sKCt2nYqRwVTmk4cdwNyjKaWcJjugAncTA=; b=g0pG6E0ZsdvobjxpSmtdO1w1GbCylYzwACk56RAHIYqPcj4wum6eJye75q+P2fCFzx E5O0n269RVylVsk2NrqPL/uUfpYayNdW+p3uHyEESJZ6dgR6qcjHHK5cDZx+QSxFw5Fd Rw2PsF6E+xdb6Q647xRQri3oCW1G1ZsUQsYeS4Ztl109lBFDkNQn8gjroDujm0vnvuMH AUrfoNO2UUFk2pa8TqFGjGnT79csgNR127YCjk88qnY6V5U5Nvju7cDD0gC1Cg9oMcYG SuEbZ3KYnnVZ7wnr2UwKrEX5vfipBFpFYSmCGzoL6a3MIKlQlPXR03pcZVvP9d04fRP9 JkYw== X-Gm-Message-State: ANoB5plwRrOKL5GLbBdwcoq7orVSE1qF09x2IVED03SV7p1yXZXKnG/a JEBb9NjRty+vNMKWgGCTlDU= X-Google-Smtp-Source: AA0mqf7YGbzDucyd70A/Q08mi5Xbrcejd4EXkGQ/1lkHXeQxN36jnzvd006J3UXgXzvYHUTmz9M1rg== X-Received: by 2002:a5d:6e0e:0:b0:22e:ed53:771c with SMTP id h14-20020a5d6e0e000000b0022eed53771cmr25925777wrz.297.1669415353492; Fri, 25 Nov 2022 14:29:13 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id z12-20020a05600c220c00b003cf7055c014sm6356227wml.1.2022.11.25.14.29.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 14:29:12 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42f.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.243, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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:300527 Archived-At: On 25/11/22 16:58, Stefan Monnier wrote: >> I'll just mention that sub-projects have been haunting me for years in >> Projectile, so you definitely will want to think long and hard about their >> implementation as people tend to have all sorts of setups. Sometimes I even >> wonder if it's worth it to try to support every use-case possible as it's >> definitely a path of growing complexity and diminishing returns. > Thanks for that background. Personally, as a mere user of `project.el` > I wonder about the meaning of "subproject". Are we talking about two > *separate* projects that "happen" to be layed out in the filesystem in > such a way that one is in a subdir of the other, or are we really > talking about a situation where some project operations (but not all) > will operate on "the project and its subprojects", which would then beg > the question of how to decide which operations do that (and when). Just to clarify how we got there: I only used the term "subprojects" to refer to the former, and only for the purpose of describing how one could implement a particular behavior: excluding subprojects' files from what 'project-files' returns for the parent project. IOW, being able to make sure the projects are "disjoint", even if one is "inside" the other. And to get a performance bump from doing that, in certain cases. And when the discussion got to the latter at one time (a more complex and open-ended topic), I asked to split that into a separate feature request via 'M-x report-emacs-bug'.