From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Project out of sources compilation Date: Sun, 17 Mar 2024 12:36:44 +0100 Message-ID: <87ttl5w0mr.fsf@gmail.com> References: <4wwljrdnra3bsloehioa46y24ozxajajmvf2elvskxxq3mhtg2.ref@pyv2z5snot6h> <4wwljrdnra3bsloehioa46y24ozxajajmvf2elvskxxq3mhtg2@pyv2z5snot6h> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Dmitry Gutov , emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Mar 17 12:37:42 2024 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 1rlopi-0003JW-26 for ged-emacs-devel@m.gmane-mx.org; Sun, 17 Mar 2024 12:37:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rlooz-00074S-61; Sun, 17 Mar 2024 07:36:57 -0400 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 1rloot-00073x-FX for emacs-devel@gnu.org; Sun, 17 Mar 2024 07:36:51 -0400 Original-Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rloor-0002T2-ND for emacs-devel@gnu.org; Sun, 17 Mar 2024 07:36:51 -0400 Original-Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a468616ed70so279659766b.3 for ; Sun, 17 Mar 2024 04:36:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710675406; x=1711280206; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=r0G77/JrhQtkZI9h0FAWzsxm/dkxrQGKVKaLoBR1X+g=; b=VzWGOSsegA/LzBgoVAPPy8m3NnpgTlY//4KU8fya2Bp0ng8S7bdTZTvzj/gNyjCG/f vhMTv0r9nmcSDG/UUPszoMroZnhIkUmInDf7Hm8cd238eDnGNuxIiMllqLcFNpTyEjrf O+z3s1ES2JEfXP5a1V2RULpmzT56TUu818GWtTcRAAcyHD+FfUgJ0yP93Cn/5ot+gawu unNl/L0kIKyGA6kkIZ/li01TbFzWAE33dZWQHkwxnKs5FonuE7tBwIWhpRN/ucDOGglJ v6BPX6yuf2nZj115MDaUYiq0/LiLia5HF/4XrD0Pcyhq6Qiq21XzAA/sHI3WKBIqdboZ sejA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710675406; x=1711280206; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=r0G77/JrhQtkZI9h0FAWzsxm/dkxrQGKVKaLoBR1X+g=; b=qK07nH5A7qJRKnELYSCCy7Cqp5cCsDlfmJoLckzurOm9ehAI/mkGcWjnILEH/PiatB 0yNfdfqVmJgbn78PoPNBxCDzWIiA/o1c1P70rHGw/wQaYaokokbltYWQ0EVr/djhbM5K Tla5ZORBAufmn6Fu2mxYiixzggwcAHlOLpL+WZznw0Q7KqmrulIEi1zSFiKLCCr58AqB sv1wLba3+KrY26h/5qe+j1DG5481qh71FwU8GVvHFW390nUcGT0xf9qhUooqdZJ2sU8S n89rtZXHQ2iPb+3YAuzmD9F3fcqGSkFBDCADSw1HG8piIMh4FwErnNF3SPgTeJXxOn1I 2Elw== X-Forwarded-Encrypted: i=1; AJvYcCVYVUJVFLRMcRKKBpGUYm2AzTqfTPmPScKtRkYPzhkLx/rgMFEfS+8Z6EEbYajG8StY2Y/LYbDR9pMhVIVhDlPOxmMQ X-Gm-Message-State: AOJu0YyC+xizqrcOzYr19EF1qYGZHqpEg1HUBw7xQuy9Q262MFJ3QHxG 3F8z8eEwaXtQvWwguAX5/BbjD1JY6pgeXN58zmou87/pkrK/XzFnJL+mmZH8 X-Google-Smtp-Source: AGHT+IGqI+QeLYIEk301X+6OovGVslT9hfYUx5ZU1dncBV6ZpAazKy+ii4YUk0E4IiQFwonCCXFfcg== X-Received: by 2002:a17:907:7d8f:b0:a46:960d:7534 with SMTP id oz15-20020a1709077d8f00b00a46960d7534mr4394015ejc.27.1710675406149; Sun, 17 Mar 2024 04:36:46 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8a87:ff00::c15c]) by smtp.gmail.com with ESMTPSA id j22-20020a170906051600b00a441a7a75b5sm3678451eja.209.2024.03.17.04.36.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Mar 2024 04:36:45 -0700 (PDT) In-Reply-To: <4wwljrdnra3bsloehioa46y24ozxajajmvf2elvskxxq3mhtg2@pyv2z5snot6h> (Ergus's message of "Sat, 16 Mar 2024 14:12:50 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::634; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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:317137 Archived-At: On Sat, 16 Mar 2024 at 14:12, Ergus wrote: > 5. Project local variables (a man can dream, a man can dream) > > There are some situations where we want to have variables shared among a > project. (i.e some output directory, logging option when executing, > flags, environment variables). > > At the moment these options work partially by using directory > variables. If we have the concept of a "project", maybe it is logical to > have some sort of project scope concept, specially for projects sharing > a common root. For Emacs variables, why you think dir-local variables only works =E2=80=9Cpartially=E2=80=9D? As to environment variables, they are generally assumed to be global in Emacs and it goes a bit against the grain to make them buffer-local / project dependent. Nonetheless, there are packages for that (one is buffer-env, which I wrote) and they work fine (at least for me). > For example vs-code adds a subdirectory with project variables that the > user (but also any plugin) can refer to in the project's scope. Is this meant to store editor configuration or environment variables? I guess turning VSCode configuration variables into Emacs alternatives would be tricky. But if this is about env vars and the directory organization is sensible, then one could configure buffer-env to interoperate.