From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Buffer-local process environments Date: Wed, 01 Sep 2021 15:38:22 -0700 Message-ID: <86mtov2a75.fsf@stephe-leake.org> References: <87eeets6jf.fsf@gmail.com> <8735v99f4i.fsf@gmail.com> <87y2d1xada.fsf@gmx.de> <877dkkcjrj.fsf@gmail.com> <87tunoyzzd.fsf@gmx.de> <87eeerby1n.fsf@gmail.com> <87a6pfepo6.fsf@gmx.de> <874kflmzn3.fsf@gmail.com> <87wns9glm1.fsf@gmx.de> <87y2co4hto.fsf@gmail.com> <87v97reubc.fsf@gmx.de> <87lf4lkb1w.fsf_-_@gmail.com> <837dg5oidr.fsf@gnu.org> <87h7f9k9tl.fsf@gmail.com> <86zgsw1ss2.fsf@stephe-leake.org> <87czps7ee5.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39925"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (windows-nt) Cc: Eli Zaretskii , michael.albinus@gmx.de, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Augusto Stoffel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 02 00:39:56 2021 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 1mLYte-000A7G-FB for ged-emacs-devel@m.gmane-mx.org; Thu, 02 Sep 2021 00:39:54 +0200 Original-Received: from localhost ([::1]:53326 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLYtc-0002k3-Ux for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Sep 2021 18:39:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51302) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYsO-00023I-WC for emacs-devel@gnu.org; Wed, 01 Sep 2021 18:38:37 -0400 Original-Received: from gateway24.websitewelcome.com ([192.185.50.252]:20204) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLYsI-0004Ir-BR for emacs-devel@gnu.org; Wed, 01 Sep 2021 18:38:36 -0400 Original-Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway24.websitewelcome.com (Postfix) with ESMTP id 5D2801D08 for ; Wed, 1 Sep 2021 17:38:28 -0500 (CDT) Original-Received: from host2007.hostmonster.com ([67.20.76.71]) by cmsmtp with SMTP id LYsGmOuwzBvjyLYsGm0upK; Wed, 01 Sep 2021 17:38:28 -0500 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=stephe-leake.org; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=irKR1n9jkuDMMQ0vtS5xjVDx9tihdG9PuvVSboM+Ovc=; b=iPcEQ4XYvXvQN/Ay+B2OpTZ8+K tG2dkDkN/k2ira7m1hsZauVQe15KySg0uIqwNxTddwPlRpn9S+zbX1me/gzSz5u5xIq6ufZqkGwdJ I2fcd01P7TKRFPQv3iDFx0uQOX2new+HjNhdbX1ex8WDrpx+QFrEOtL4ors0H5xem5Snxxvc0pSme UuAA7RWgrnGO6DU7IH5d2RzbvoRBU9a9IPMKqq5WvH2WQCKufJXb0yZFaJNsRYtO0N8enx2T1d2g7 gkRQaTrx9wGHAWdVl6K7U4tbCcp/qHXi4MecbXmDfn70DcnRziUdvL5MTTvVNjBgdM48XyUXRvwu4 D/Ks0G9w==; Original-Received: from [76.77.182.20] (port=56201 helo=Takver4) by host2007.hostmonster.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mLYsF-001XRe-KR; Wed, 01 Sep 2021 16:38:27 -0600 In-Reply-To: <87czps7ee5.fsf@gmail.com> (Augusto Stoffel's message of "Wed, 01 Sep 2021 12:56:34 +0200") X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host2007.hostmonster.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - stephe-leake.org X-BWhitelist: no X-Source-IP: 76.77.182.20 X-Source-L: No X-Exim-ID: 1mLYsF-001XRe-KR X-Source-Sender: (Takver4) [76.77.182.20]:56201 X-Source-Auth: stephen_leake@stephe-leake.org X-Email-Count: 5 X-Source-Cap: c3RlcGhlbGU7c3RlcGhlbGU7aG9zdDIwMDcuaG9zdG1vbnN0ZXIuY29t X-Local-Domain: yes Received-SPF: permerror client-ip=192.185.50.252; envelope-from=stephen_leake@stephe-leake.org; helo=gateway24.websitewelcome.com X-Spam_score_int: 10 X-Spam_score: 1.0 X-Spam_bar: + X-Spam_report: (1.0 / 5.0 requ) DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_NEUTRAL=0.779 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:273687 Archived-At: Augusto Stoffel writes: > On Wed, 1 Sep 2021 at 03:42, Stephen Leake wrote: > >> Ada has a similar situation; GPR_PROJECT_PATH specifies the path to >> search for dependent libraries, and is per-project. > > Great, so we have some more evidence that support for project-specific > env vars is a relevant feature. > >> The GNU ELPA package wisi takes an intermediate approach; it maintains a >> list of project-specific environment variables in the project object, >> and let-binds them in process-environment whenever it runs a process for >> the project. > > If I understand correctly, this works only when launching the WisiToken > program, am I correct? No, any process. In ada-mode, that includes the compiler and the cross reference tool. Perhaps you meant using wisi requires using WisiToken to generate a parser from a grammar; that's mostly true. There are some things you can do with wisi that don't require a grammar, but the main focus is on exploiting the parser. -- -- Stephe