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: Fri, 25 Nov 2022 22:27:51 +0200 Message-ID: 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> <86pmdb34hb.fsf@mail.linkov.net> 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="6137"; 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==?= , Stefan Monnier , Danny Freeman , Eric Abrahamsen , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 21:28:37 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 1oyfJN-0001Pm-8V for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 21:28:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyfIk-0002zH-Uf; Fri, 25 Nov 2022 15:27:58 -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 1oyfIj-0002z6-Lh for emacs-devel@gnu.org; Fri, 25 Nov 2022 15:27:57 -0500 Original-Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyfIh-0000Ao-3d for emacs-devel@gnu.org; Fri, 25 Nov 2022 15:27:56 -0500 Original-Received: by mail-wr1-x42c.google.com with SMTP id b12so8376894wrn.2 for ; Fri, 25 Nov 2022 12:27:54 -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=GNiJDUbP6yQATTdEsEm3CI9ZyRnJMIWRKciLAb6Dwd0=; b=DKH0a2NpUHHeL29LExSMSzwWYEhYjaG1RadP/5wV1+CwLEb3F9NjjEfke67wyIUS/q 2GsOmM6VSZKH9+R9fmrGo0xqJAalo/1tw4GlO3QTAn3BBcMy4s5/n0FsAz/VG2mwPieG BXvE/9v4BloA97KyZO8XFxI4TbuPP7+413B3y93ny4CBKIUTyW80tCgmgOUcdVWY7QdI i0NsOHPxu577AEEWz5AUJx31ZBEl+3zIuXvB+YbRMl5jaP7E/7T58oivvMNk7HhI4rCg KWD412RXh9vm0h6bxAQbpBQPWoizDZqasiPoJbiN2ZiW2hWDzZwezV9MMKxPq98+0Zi4 iLRA== 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=GNiJDUbP6yQATTdEsEm3CI9ZyRnJMIWRKciLAb6Dwd0=; b=ZvNVZAnCOC+9L97JGDh3GMlenFUNoCO4EtvX0NB8/CnTJXkEbnceEKFdDlx/DChb8x R+vLSJw0nOyt2Mbs8trSmXDSyaz0lM/J0ltcHIbqx0wTqi3DfLV6l3V/biGqUf0+odEO YnXpK80H7aFi6H+mLlVfvYZxS+PLTL31rRprfzDwN5PXts1p5VM5B3vU4o7d6cS3JKbK NsstRiCJ/WOy4EMrqrGEou5CTKU4/OSoiUIbzg62jUlg9loODZsEn66Q0FFaZLQ+X8L5 a7Q6BznEMgQpkN8ybHbuwazWBJiSXNH5iFIADCiwKqFbN9sytbG0xs7zjnoY5vDqY22r KS6g== X-Gm-Message-State: ANoB5pmO5kRP+eb/GT/Xuaew7ZudxsWDgOEhX94oNhruhka7KXoLD5X6 Na6Nh24o8+iuNQTH14T37U0= X-Google-Smtp-Source: AA0mqf7GNnNJN+uZHSvFyIcoWX5rDTFARiAcMueA2ohbxJUHkDZqrVebT8t4qVIeYKjcavfMO3QolA== X-Received: by 2002:a05:6000:691:b0:241:b92b:d086 with SMTP id bo17-20020a056000069100b00241b92bd086mr25024615wrb.259.1669408073138; Fri, 25 Nov 2022 12:27:53 -0800 (PST) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n5-20020a05600c4f8500b003c6c4639ac6sm7441282wmq.34.2022.11.25.12.27.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 12:27:52 -0800 (PST) Content-Language: en-US In-Reply-To: <86pmdb34hb.fsf@mail.linkov.net> Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=raaahh@gmail.com; helo=mail-wr1-x42c.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:300521 Archived-At: On 25/11/22 09:42, Juri Linkov 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. > There is no need to change dir-locals.el. The project root can be > defined using 'dir-locals-set-class-variables'. Then it can be > assigned to any directory using 'dir-locals-set-directory-class'. How would we fetch the exact root at runtime, if the value is applied to the whole directory subtree?