From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: t@fullmeta.me Newsgroups: gmane.emacs.help Subject: Re: local emacsclient to remote emacs server Date: Thu, 24 Mar 2022 10:01:32 +0000 Message-ID: <3bdba293-340f-4b3f-8d86-8be0d19a9c1c@www.fastmail.com> References: <61ef851f-1d3a-4070-b19a-ad6d19813fc4@www.fastmail.com> <87o81wc289.fsf@elite.giraud> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="549"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4911-g925b585eab-fm-20220323.003-g925b585e Cc: help-gnu-emacs@gnu.org To: "Manuel Giraud" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Mar 24 11:04:38 2022 Return-path: Envelope-to: geh-help-gnu-emacs@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 1nXKKb-000ASQ-F6 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 11:04:38 +0100 Original-Received: from localhost ([::1]:43302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nXKKZ-000280-MP for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 24 Mar 2022 06:04:35 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51816) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXKI2-00020t-7A for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 06:02:04 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:46045) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nXKHz-00046A-MM for help-gnu-emacs@gnu.org; Thu, 24 Mar 2022 06:01:57 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E0E045C01C4; Thu, 24 Mar 2022 06:01:52 -0400 (EDT) Original-Received: from imap45 ([10.202.2.95]) by compute2.internal (MEProxy); Thu, 24 Mar 2022 06:01:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fullmeta.me; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=jqMRpPWVJyBpEA2rzt37HsPryM3eny9i+BooUX AT7Wc=; b=ZT1u9IXiZ4xy2gS0Y34XZeEFb77AjIVPh+qH9x10FCqsd/c81LWy9A cHHTnsLhh3E7CkcZT+b0tFZYlTf6sm9+zxX24+rJR4E4RreY/OA/x5nydQ0pyPql EnkEeT3ag/S7OIVcDLty2PZ2BwinHfOvvTIkmgckLjjjwr6nY/7BSJxZqMuuSAb3 q6XVGjDqaqfexTiC9i8z+ckGbE/TwdFNIqRbsW0ue6CgETqryQmWV9osvZi77Lz/ 1NC8JahK/idLpIZCn3ncCwd9zvEfhadrDJjnNIrQ3Td0bteon0yemIL42zHSwUcS e3NVATPXL02macFNTihNlMBMrLg+/Klg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=jqMRpPWVJyBpEA2rz t37HsPryM3eny9i+BooUXAT7Wc=; b=f1zkIyYrO6UizW1R5hRs7/LEd8+In7TGG nbbB6bp0fFb922dnDRr4PZ3f6FYhlimnPXNS5sraRKOO0se44veeb/Q4bORyG8WV eSCbfElKVkGsBp0o9ONxQdWMD8rgLzy+UVx8HOTdQgaUj5akqiyQ6MAHyVyG6iQ/ 7/iPsyuMcrfBZ6SCKHRYZWVY29j8v2nhn9ZzfQGyezbxcPeoOqoAd159Bm52nTlN CQkl3ebHjcwTqlOhBuLz1I1p4+dwSqs2UxH3Xhp2SpnVd+O63lN3W3xK6X7z+XSV s0O4koW9609d044yMP4V/D+vo0MH/tuB7Zmg0fxM+uTynmZYw9cBQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegledgtdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgesthdtredtreertdenucfhrhhomhepthesfhhu lhhlmhgvthgrrdhmvgenucggtffrrghtthgvrhhnpefhgfdvtedvveeuieehvdejudekff egveegtddthfejgfevfeeiteeiieetheefudenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpehtsehfuhhllhhmvghtrgdrmhgv X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 56A9124A0081; Thu, 24 Mar 2022 06:01:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87o81wc289.fsf@elite.giraud> Received-SPF: pass client-ip=66.111.4.25; envelope-from=t@fullmeta.me; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136733 Archived-At: > Anyway, I think your best bet now is TRAMP. You can do a lot of things > in TRAMP including running remote commands. Yes, this is another possible route, and FWIW once you figure out appropriate settings for TRAMP and your remote it mostly works. However, my need is complicated some by the remote environment I envision. So, here goes. Are there any Emacs TRAMP users connecting to Guix machine here? My use case is this. I would like to be able to use said remote machine for all my dev work. Of course the selling point of Guix is that you can setup reproducible and minimal execution environments for your code and hacking - think Virtualenv pushed to its logical conclusion. So, typically I'd do the following: 1. mkdir myproj 2. drop a manifest.scm or guix.scm script inside that has input packages and sets up services, possibly entire OS definition in system.scm 3. spawn this programmed environment `guix shell -D -f guix.scm` or inside a container `guix shell -c` or if I really need to be close to production or run services spawn entire OS in a container `guix system -c system.scm` 4. start Emacs inside that environment Now, do you see the problem with TRAMP? TRAMP is essentially an SSH session spawned from local Emacs already running. It ends up talking to your login shell over ssh basically. But we need this Guix induced or potentially even containerized environment. There needs to be some kind of "hop" or additional step after TRAMP establishes an ssh connection that puts its shell in appropriate environment. Is there a way to do that?