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:23:41 +0200 Message-ID: <3871202f-ed90-bd88-b078-ec06fa618c10@yandex.ru> References: <87zgcq68zp.fsf@ericabrahamsen.net> <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> <33292672-2a59-ba63-05ab-a7995118a822@yandex.ru> 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="32396"; 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: =?UTF-8?B?Sm/Do28gVMOhdm9yYQ==?= , Danny Freeman , Eric Abrahamsen , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 23:24:32 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 1oyh7Y-0008JN-QX for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 23:24:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyh6s-0002ZT-Nb; Fri, 25 Nov 2022 17:23:50 -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 1oyh6q-0002ZH-Qa for emacs-devel@gnu.org; Fri, 25 Nov 2022 17:23:48 -0500 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyh6o-0007hl-Ii for emacs-devel@gnu.org; Fri, 25 Nov 2022 17:23:48 -0500 Original-Received: by mail-wr1-x429.google.com with SMTP id v1so8591076wrt.11 for ; Fri, 25 Nov 2022 14:23:45 -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=pa1sSKaJf23hUGpE/AVnwmfp5HPXyuoemT/pOaBA8TY=; b=bmG1PiYukBstVvQdm7jV3WvDrjMPJbs3riX9ciQpdAYL/lt7uUjW1aPlyw9VW+8hLA PK61+wjO+QSwtf+QHYbVMNLlDuE9coHwI//F6ZGDLd7KvRaVN7VH+icbTejCCQKhlCMl ZkSE5pcwrzfkpwgJTosGzT981CHCRdXCcSLjNquTOiOcNLl8m0HvWSkzX2MwawT/Tgqd NEvG3wAdRTbWSAObMXGWZJFBh6AjOl/j3VpiLZJXBRKkB3L/LJ5i4c1IxiiermdNk8Tq 0Glh8mr4efGEUw3Q/IJooxAg1jn2RoU5aXdGC6DXIuGUI//hNFwtpfS0k7IPBts088Ln yFpw== 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=pa1sSKaJf23hUGpE/AVnwmfp5HPXyuoemT/pOaBA8TY=; b=tkaR0PNFvOX/rIa3L3WEjjXHGLNLcYFvQ5u4r5JlHDMDGuNzxd7L5DkEFHzvnAiL5S SSJjWzMnJ4E010h7fBxY2if6VTnTJfhkbUmQ5/OmrhpPAAw5JsyE24rK3xvTPe/rXm1t UCGLtp4lPpl/clJ48yrovaBGS1+7hHMbASp6vd+dDvlNt8MZGJjlGy2GfhLdRBoRmVMj B4qkArbtKt4mJneOcDQMCDMe0AxZYCN7bgG2WvXzIK1vafYdxrF16HSoLq7GPphBgQIv 18+/h34d+6cfA9vo2c2IP0t0B5cK/VHMDY7kj1WaDOviUjlhb161rPZuh6hjsM/UvEGK jXlg== X-Gm-Message-State: ANoB5pmXYqkOnTCvQpj4vQ3nSPBefKsevgbQuuYVHV4/wrKEBJ2Lrrgi kPomwndb304CfKbHWneZtao= X-Google-Smtp-Source: AA0mqf7DjNYkqGXQhBwddIsgBnPer80jk8PLag3QD17jFX7e0f25VP65vOZPug2WAu9S7spv+BKbrg== X-Received: by 2002:a05:6000:156e:b0:241:cbe9:78a9 with SMTP id 14-20020a056000156e00b00241cbe978a9mr18608204wrz.529.1669415024384; Fri, 25 Nov 2022 14:23:44 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id k21-20020a05600c1c9500b003cfa3a12660sm19313900wms.1.2022.11.25.14.23.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 14:23:43 -0800 (PST) Content-Language: en-US In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=raaahh@gmail.com; helo=mail-wr1-x429.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:300526 Archived-At: On 25/11/22 04:38, Stefan Monnier wrote: >> The idea of customizing the projects with a list of relative subproject >> directory file names solves those downsides, but comes with lack of >> automation: you have to do it for every relevant project, and not forget to >> update the settings as the project structure changes. Which might also be >> a pain e.g. when switching branches, if your dir-locals.el is not >> checked in. >> >> Perhaps we'll ultimately end up with both ways to do this inside project.el, >> but that feels redundant. > How 'bout something more "organic": > allow the user to interactively indicate "this is the root of the > current project" and save that info in some customization file? > > IOW instead of having the users edit the customization info by hand, > allow them to edit it indirectly when they notice that Emacs doesn't > give the result they expected? I don't personally like the idea of a centralized customized list of project roots, though I remember some project implementations back in the day took that approach. Not the most popular ones, though, IIRC. Setting stuff up via dir-locals is more of my cup of tea, to be honest (when manual configuration is unavoidable). But we might add your way as well, perhaps later.