From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Subprojects in project.el Date: Fri, 25 Nov 2022 21:59:02 -0500 Message-ID: References: <87zgcq68zp.fsf@ericabrahamsen.net> <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> <97acd6b7-c9f1-da25-d23e-8a8e45239ddc@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18724"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Bozhidar Batsov , Emacs Devel To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Nov 26 03:59:54 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 1oylQ2-0004gL-5U for ged-emacs-devel@m.gmane-mx.org; Sat, 26 Nov 2022 03:59:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oylPM-000704-Tw; Fri, 25 Nov 2022 21:59:12 -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 1oylPL-0006zs-FU for emacs-devel@gnu.org; Fri, 25 Nov 2022 21:59:11 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oylPG-0005il-Fl for emacs-devel@gnu.org; Fri, 25 Nov 2022 21:59:11 -0500 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C85AF80667; Fri, 25 Nov 2022 21:59:04 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 3E94580723; Fri, 25 Nov 2022 21:59:03 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1669431543; bh=niwr/s8487EsdyPB7NjBXoSo+JLiVSMT68qTt/mBPiE=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Y7DBwAA5dyJSiNHEc321ySjpE+T/Y7sM7bRgRaVxtQo4fgHFpAal2BC7KkIgGmJlh 5/OzQcAIYtfihub24bKVsTChxyCQpKVZqRWNnE0TrkIUdM2F66dFhWusdjhCqMPZx2 2MRvIqCSHnfgrJOTrNyBm+tIeUyoPmT0FbvDPNTXSZZDI4z35OfGqi+YjdE5RVPek+ QKusIX9j3tJLC1/qc5uI61mq3FBop3y7Bvp/qEPGYjNzmIlF6Rl/+uMjtq6AFSLsX1 rgk0xefr1B4efzkQBHItk+yiVkfKckujpmr+etoemnEOYkNDbYi/ngAVkkKHERoS+L KRihSY1ZR+XXQ== Original-Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DA6431204AE; Fri, 25 Nov 2022 21:59:02 -0500 (EST) In-Reply-To: <97acd6b7-c9f1-da25-d23e-8a8e45239ddc@yandex.ru> (Dmitry Gutov's message of "Sat, 26 Nov 2022 00:29:11 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham 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:300545 Archived-At: >>> 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'. I get the impression that the discussion is a it muddled by the lack of distinction between the two, then (at least it wasn't clear to me which part applied to which case). I suggest we choose two different names for those two different cases. Stefan