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: Buffer-local process environments Date: Thu, 29 Apr 2021 19:31:59 +0200 Message-ID: <87y2d180a8.fsf@gmail.com> References: <87eeets6jf.fsf@gmail.com> <8735v9yudx.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35625"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 29 19:35:28 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 1lcAZU-00099A-0A for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 19:35:28 +0200 Original-Received: from localhost ([::1]:52918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lcAZT-0001L3-38 for ged-emacs-devel@m.gmane-mx.org; Thu, 29 Apr 2021 13:35:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lcAWC-0007ch-Rs for emacs-devel@gnu.org; Thu, 29 Apr 2021 13:32:05 -0400 Original-Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]:33392) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lcAWA-00023a-UG for emacs-devel@gnu.org; Thu, 29 Apr 2021 13:32:04 -0400 Original-Received: by mail-ej1-x62c.google.com with SMTP id t4so17783579ejo.0 for ; Thu, 29 Apr 2021 10:32:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gwKLlTArw3nL+G0vRKeicS1zBmYhl01941QSWhzWqJY=; b=FJBUZD6NPnpRnaZk3PQnj2mVxzCiDrekHJwtlYt5mYCJfuzuZxEw8XUcWZtk7W6L5B LKekjKnusPFteSWXis0IzJzYNpaPnuKWNZ8GWizsE5nvskvTmBLm82K6yyIQeOgejohu g3Gfh2GeyhfcrTK+/+0WMWwd5eEdoclIqP3P68nkG+MAsBAxXNCJ4o6d9gXDwkE3sZzJ UW6tYeYSfMonUkmQm0OY3SE9U7gRcZU5RrFgSCja9DWpGwzZanpV+Z2HmpOuCTjrvnw+ d1BWGJuUcSpHB4mTo2OZbKCGj4YZ5qYVL6UAPXLXnxHnA6mNMaK2QlFZWS1qQM7BCZ3B GoBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gwKLlTArw3nL+G0vRKeicS1zBmYhl01941QSWhzWqJY=; b=AK1ToTkSHoqj9Y8CJV1TyJuT83whdPhtX1Qx8eqi7rCPETtHDUvTaaRr+cv+HPwU4K omLjmT5nVb8ishWVuHYDQCW177ugXNvk8FKHnsXFi4Mah9tNzTgoCjRtwMu2wtWF5+gP Hzd0E28VcJu3CSvyYT4US7C7k6DAoEZ/6aqpd/lKZpUuM2kONnpXicFkBCVaxyiKwl6f yxufvpxAx1od0ncvVUYPK4dTxSL35OZhr6Hbxvj5BKq63TTjXx+qZfj2jSnWqBMbe0px mKhNeEb6ZYzs87hKJfqxBcnnQxUFViYpciFRlhSEMa/5yU0Wf9pF+bk1cVkngumHhK3/ RNgg== X-Gm-Message-State: AOAM533yCrAZw/E+LTUL0EPrZc4aufyDyCR4YwuRn9tnA52JCMdx4JJg PSENld+K1x+f+rieVQn+5JWtMhsHqcs= X-Google-Smtp-Source: ABdhPJwpI7iWuLjpVnOWN1NX8kCixzEEVv8hvYZsqzecOpo3TG80H2kJNAirKDNwiXmy+vt/uAiyhg== X-Received: by 2002:a17:906:a295:: with SMTP id i21mr1063365ejz.160.1619717521122; Thu, 29 Apr 2021 10:32:01 -0700 (PDT) Original-Received: from ars3 ([2a02:908:2211:8540::68a]) by smtp.gmail.com with ESMTPSA id n15sm353005eje.118.2021.04.29.10.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Apr 2021 10:32:00 -0700 (PDT) In-Reply-To: <8735v9yudx.fsf@gmx.de> (Michael Albinus's message of "Thu, 29 Apr 2021 17:37:14 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::62c; envelope-from=arstoffel@gmail.com; helo=mail-ej1-x62c.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 autolearn=ham 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:268627 Archived-At: On Thu, 29 Apr 2021 at 17:37, Michael Albinus wrote: > Augusto Stoffel writes: > > Hi Augusto, > Hi Michael, >> Point 1 is simple. I've attached a patch for `compile' as an example. >> In the Python REPL case, I'm not sure whether it would be better to >> just adapt `run-python' or make a change in comint itself. > > Have you checked, that this works for remote processes? this is already In fact it breaks with remote processes, see at the end of my previous message in reply to Stefan. But I think it's a Tramp bug. Tramp is supposed to completely ignore `process-environment', right? So it shouldn't matter if that variable is buffer local or not. > hairy, and I fear it would be even more complicate. If we are going to > change something in this department, I'd be happy to have also a > rock-solid solution for remote processes. True. "Connection-local variable" sounds a lot like "project-local variable" to me. Maybe there could be a unified mechanism. > > See also connection-local variables, which are an attempt to make life easier. > > Best regards, Michael.