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: Tue, 29 Nov 2022 20:40:36 +0200 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> <86cz97jzpi.fsf@gmail.com> <87y1ruqe1o.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33006"; 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: Tim Cross , Stefan Monnier , Danny Freeman , Eric Abrahamsen , 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 Tue Nov 29 19:41:36 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 1p05Y0-0008MG-AT for ged-emacs-devel@m.gmane-mx.org; Tue, 29 Nov 2022 19:41:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p05XJ-0006zo-Da; Tue, 29 Nov 2022 13:40:53 -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 1p05XF-0006sh-GC for emacs-devel@gnu.org; Tue, 29 Nov 2022 13:40:49 -0500 Original-Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p05XB-0003fb-25 for emacs-devel@gnu.org; Tue, 29 Nov 2022 13:40:46 -0500 Original-Received: by mail-wm1-x331.google.com with SMTP id ay14-20020a05600c1e0e00b003cf6ab34b61so15116109wmb.2 for ; Tue, 29 Nov 2022 10:40:39 -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=RnNrUmwC0QjpZr7Z0x/OCjVAsDlyRdq9ZfIV/yhATYg=; b=ftkaZmMNrGO013Jwbg99AWTN/CKI1mWIVXn2jyS5V1OE0AZ4QWaqyflHdg0HRV4eDf RUPoexf44jNGq+EpREMbNpJYjeEKSCbr4yxpyDm1hI98Wxw8CHt5b6yRIkf53uXc4u63 SYobz5V9LcYyxorBskf1nOMxHk7Rj8h8iS4uRxHDBepVBzcVmIKXtSvoy8rTQq+9KsnF wMLfqPGcC1hV4DfF8+iU5brR4wQ7UNR6ffavMNTlRSs63VfbAG9ADCYZTOT5z1Tjiagr Oskc3007bQRi+4JqXVgejm673OVKqpxwoIuBPOQDAN+2MpEC6FddkAAxYVVgWH93hl7M E9IA== 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=RnNrUmwC0QjpZr7Z0x/OCjVAsDlyRdq9ZfIV/yhATYg=; b=D8PpiMSF20wmupHjp/xO0ROjRlVFfi5Xa73RVvT/EwswzU1dqHRPkNmuG5uS7JDJxi mqwybTAYNeZXVLgIJFzsQPmYYTLHEu2dZSH6/7Qw4MOn1Kc8YbdJWYRw68kFphoOd2FZ BAq1GAQ5WxpZ56R8BeHYiFiaVrkCHOndXgEpGdUpErfr+lwIHy+mcMPf3OWFNInPvMEO Y/NTQmntxdJVEmkZKmJFtPNh1SIQk7kjn7DBGCxMWDNpzUoXk/p3ASCGd/CiB8FSpu+A V7Yxl80mU0lcAwHDkhn4sAbH4JgnDS4F7AzMQKm4GBlqT589sIO80pIZ+zuf3oPV+v8T vYMg== X-Gm-Message-State: ANoB5pn6ZPhZg6fLznpJcBeIdHQ9W4tN+OxoQAN6nEaEp1Zo4b0SJpUq zxrFGL7DzJURHw+UdZhaEAVZWJVE9+s= X-Google-Smtp-Source: AA0mqf5C+2d4FD1fRMAqeAnATUXIWC+H7tZgrdrNhktSwKZ52mWcYUh1E24aHTDi/goIi4gBm1E7MA== X-Received: by 2002:a1c:6a02:0:b0:3cf:71e4:75b with SMTP id f2-20020a1c6a02000000b003cf71e4075bmr31123343wmc.114.1669747238697; Tue, 29 Nov 2022 10:40:38 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id h10-20020a1ccc0a000000b003cfd42821dasm2937781wmb.3.2022.11.29.10.40.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Nov 2022 10:40:38 -0800 (PST) Content-Language: en-US In-Reply-To: <87y1ruqe1o.fsf@gmail.com> Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=raaahh@gmail.com; helo=mail-wm1-x331.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.258, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:300720 Archived-At: On 29/11/2022 11:56, João Távora wrote: > Dmitry Gutov writes: > >> But I'd be happy to find out that 98% of our users' cases can be >> handled with markers. > > I think you'll begin to lose that bet right here in the Emacs repo. > Take the doc/ directory where Emacs's manuals live. It's pretty > reasonable to consider a non-programmer (or non-Elisp) contributor > working on that directory almost exclusively, perhaps as a proof-reader. Setting aside the artificial nature of this example, they could add "lispintro" or "lispref" to project-vc-extra-root-markers and have that nested project recognized. As long as the directory contains at least some unique (in the scope of the containing project) file or directory, the marker-based approach can work fine. > That person would like C-x p f, C-x p g, etc to operate on the /doc > hierarchy almost always. For example to escape the enormous amount of > grep matches in the Changelog files. Occasionally, that person might > want to grep the super-project (Emacs itself) or run a compilation > command from there, but that would be infrequent. Sounds fine to me. > Now, using marker files to mark doc/ as a subproject is not only > impossible (there are none) and also useless. > > Marker files _are_ useful in e.g. large Javascript monorepos where a lot > of NPM packages live. These are frequently added, removed, reshuffled. > There, looking for `package.json` to designate subprojects makes a lot > of sense, this is beyond question IMO. But that doesn't make the case I > describe above an exotic exception in any way. I don't know how many people actually intend to do what you described, though. But it seems workable just the same.