From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: Python and Tramp Date: Mon, 25 Oct 2021 14:36:49 +0200 Message-ID: <87lf2he0wu.fsf@gmx.de> References: <87czomrs81.fsf@gmx.de> <87h7dyvx29.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="19776"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: "=?utf-8?Q?Fabi=C3=A1n?= E. Gallina" , Augusto Stoffel , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 25 14:55:55 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 1mezW7-0004w7-1y for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Oct 2021 14:55:55 +0200 Original-Received: from localhost ([::1]:52648 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mezW5-0005tJ-Qz for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Oct 2021 08:55:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mezDm-0006nT-Ve for emacs-devel@gnu.org; Mon, 25 Oct 2021 08:37:02 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:58597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mezDk-00017S-Qf; Mon, 25 Oct 2021 08:36:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1635165411; bh=sv88pG1LclgDQoWO8PcSeeiKu1px5NPR0+VGshC9IF4=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=kRQQceTip5xQXPAMoVzrh/2+dS5jGrFzHw3TRLu0rAu3Dn3t2oIJPnG+jZZvA1K7x aglOuxkHyVe18F3jYG/9gf6ntHgDbcewUO4az4MrnzjShpj8ORsAiD4roh7szpi+AI U/uNbHfHaObpc0HPL5HvQbK8SV+H4/Qx3iDkSE40= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([212.91.242.69]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MOiHf-1mJuEm1QX1-00QCrA; Mon, 25 Oct 2021 14:36:51 +0200 In-Reply-To: (Stefan Monnier's message of "Sun, 03 Oct 2021 17:40:14 -0400") X-Provags-ID: V03:K1:cRcAJWhHlD2+1Y00ARLK8ylHFF9hw+16IYM0oEYKxeCGP2+YlLV 9es/wZM9hg/wc+JRvV2ft3DHR6BXw92RZ7E4zorsxk5tLQQFcVv/5JHcIfzU9i9wG/qm83q DeX0F5Yku4LTCKuKEWtrHVHIrzE/HZlcb2jMvhtwUi0K10p5ZfHX1VqJC+hJvenBbulndSl p7unjrlENr1cc8778LoLQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:HPDjK1yyM+o=:c/y4TIOJMANfFneTv9IbuV ts34mfJW7HkuoRqGlAq6aPc0Ncn2Y3uR3OuNc5qVqG5qFNdZebaRvR24/OuvYFlbdxqBwxjZ8 DrAF2iYNKWvPNY/khBoyvJkfBXyzBFNlGiKEc18U6oSqORzhmN+lpi6/XuIVv4EEkGs4x7vem QAgJRq0EJf8KknEO9NkiSiQRgWEIFSRi1pvT08ZAciHFBV/c3d2QALU3tPy8Wpmq8yeiwMmm+ Y34DnHU6pScNglBJbC6fZiDsFhenga6rluh6IWMXqtzDp/UD2JPSxZqkvAi77BCdBqU5H97fp 7xQ7kB71/P4oJZ13IUjOq0FAZmsgRdn1ek2QpI4Ei6Dp4K8X6KXgIjWzjfMQb/tjCKdBPDCYl DTG/R5DI7Ui4Yb3ivyC9LOFvRT74YD8qeZeO5Fsy6dyQ/IiQB2Nfa+mmKkCGWRgF2utLddFzE cDhc5pS0U9hNIb2taSAemrDlhxgaY9pAlZKRNUd1SKiCOveGdFEqe+XVAPB0qIlzmM+zCya0Z J/LhMW5LeQhhl72COL90dFqRmexWaz89dow4KyzN4VwR1OhrV8y0Wb7/rG0PgVuIUYyVqgUBI 1sUhnBBulGXqJ+cDZkY9S8p3dX+2zRKTkrSxwcOYY6AfLSkp2X88gTArvZoKsyOmt5oS7ffb+ Zaj/qjNWJlGrdfyaFHxEq73N+2TPN/HqEpbY9ksMMZPndYI+xbJg/nZG9Om2A8CNYdF3G727u ZRGe3kbWoDnx9bSO7oT+95WkzlPvpolFXQeeUcQm0yhdh+wxo1i4cGaQIj3aOb5PGHz3UOiU Received-SPF: pass client-ip=212.227.17.22; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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:277739 Archived-At: Stefan Monnier writes: Hi Stefan, > I think, when reading the python.el code, I'm bothered by 2 things: > - the presence of Tramp code, of course. > - the fact that I can't clearly see what is the intention of that code > because it is intermingled with Tramp code. See my other message. Both shouldn't be needed. > I suggest we start by changing > `python-shell-calculate-process-environment` so it doesn't return the > full environment, but only the entries that should be added to the > environment. This should make it possible to write it without any > Tramp code. Yes. > Also we should split `python-shell-with-environment` into the Tramp and > the non-Tramp case (there's very little overlap). E.g. the code below > has most of the Tramp-specific code confined to functions that have > `tramp` in their name and which mostly (but not quite ;-( ) don't know > about Python. Could we start with your patch? That means, could you push it to master? I would continue then with my proposals from the other message. @Augusto: I don't write python code, so I haven't an idea what is important. Could you pls send my a small remote test project, including the settings you apply in your emacs, which I can use for my own tests? > Stefan Best regards, Michael.