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: local emacsclient to remote emacs server Date: Mon, 21 Mar 2022 16:15:01 +0000 Message-ID: <61ef851f-1d3a-4070-b19a-ad6d19813fc4@www.fastmail.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="11446"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.5.0-alpha0-4907-g25ce6f34a9-fm-20220311.001-g25ce6f34 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 21 17:23:43 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 1nWKon-0002lC-DQ for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 17:23:43 +0100 Original-Received: from localhost ([::1]:43692 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nWKom-0000rK-1R for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 21 Mar 2022 12:23:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56824) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWKgq-00089h-De for help-gnu-emacs@gnu.org; Mon, 21 Mar 2022 12:15:31 -0400 Original-Received: from wout3-smtp.messagingengine.com ([64.147.123.19]:40821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nWKgo-00006S-Cn for help-gnu-emacs@gnu.org; Mon, 21 Mar 2022 12:15:28 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id AEFE63201D2B for ; Mon, 21 Mar 2022 12:15:23 -0400 (EDT) Original-Received: from imap45 ([10.202.2.95]) by compute5.internal (MEProxy); Mon, 21 Mar 2022 12:15:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fullmeta.me; h= cc:content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; bh=L plRjpQKtMhnq+yd7DJRe6E+ksAGniXLRJuLgUWEKiI=; b=fbb8lOjWghVmLpDlT MYAvBF5RBhFrrp9e0X+BR7Id+5QH31IK1eU5lhw2Djco4pBcGVExRnZKuIkS0Z3d 6gF9NZNp2CzAGHPyjqpqxUR7tlwMpPtVHtHvIy/Rgcwy28AGsjjUs2fCa4AK4hFG gVtvKQiDt/5yqgyXnTjux9w4rsgqRtyxER2ASaNttQpoTvXMEjWrdIKnpAcmMTcs bZcusdE0am3WUt5Lmo6tcnFsq49QWnO3nLl0UtidhjoSb6bnLN25RCwp4xix+Fev srJTzw2ctXO6+Jh0wmTVvU8ULNgt2vsPqXBO0PGSK5xcp6CDoQmSwPPA1g+GyzJl RGQjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:from:from :in-reply-to:message-id:mime-version: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=LplRjpQKtMhnq+yd7DJRe6E+ksAGniXLRJuLgUWEK iI=; b=gcRFeMbpsJbr3ltD4Ytw00aqIXnW0eExZm1jX/nt/8ZTfJ38k1Xy3N416 77gYw2q6HEAxua/8PPP9U1N4ViX+kNs9CsfPZYGJVUh0cuZdHwg4/bjiMLgPpF9m 672kwYBOi75IF352RHhijCK2RwFXkUXYtu6WmydwlgbRHtPNtBkA2QqmCifXZC+Y b9wSxSpA7Qx4qSyiRhmypwk2EnUlOooKBHlDllSQqHxeI0mgzPKTyEUDvt1AF0jV jg0vOVa+zpZALxfbcpY9Th8KJ7SjnxLSeGs20BLj1mxl7VXhQom+2nqzYi0ofn04 a45QBHje5q7pFhQEhU0fbbyqYLoZw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudegfedgkeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfffhffvufgtsehttdertd erredtnecuhfhrohhmpehtsehfuhhllhhmvghtrgdrmhgvnecuggftrfgrthhtvghrnhep ffdvgfduvdehtedvveeugfeuudelfeeuieeghfegtdfgieetgeekiedtfefgheffnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthesfhhulhhl mhgvthgrrdhmvg X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 0E66024A0080; Mon, 21 Mar 2022 12:15:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface Received-SPF: pass client-ip=64.147.123.19; envelope-from=t@fullmeta.me; helo=wout3-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_H5=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:136712 Archived-At: Hi Emacs users. Is there a way to connect local emacsclient to the remote emacs server? I am trying to figure out a way to leverage emacs for remote dev work, wherein the remote machine is my development server: files are there, processes run there (TRAMP therefore isn't enough). E.g. could be a containerized dev environment. Kinda surprised that VSCode "just works" for that sort of thing, but perhaps I shouldn't be. After all it runs in the browser. Yes, ssh + screen or tmux + terminal emacs kinda work, but feels wrong to have all of these intermediate layers when all I really care about is Emacs. I don't use shells much and when I do I prefer to do it from Emacs. Ideally I wish I could run X version in all its GUI glory, but XQuartz on OSX can't handle hiDPI or I failed to figure a way to get reasonable resolution. Ditto `xpra`. Linux to Linux it actually works just fine. Let's go with `caveman` version then. We'll start remote daemon and forward its Unix socket to our local machine: > ssh -L /tmp/foomacs:/run/user/1000/foomacs remote > emacs --daemon=foomacs --no-desktop Local machine (OSX in my case): > emacsclient -s /tmp/foomacs -t > *ERROR*: could not open file: /dev/ttys007 Should I have reasonably expected this to work? Or was Emacs client/server not built for such usecase? Remote server running Emacs 28. Tried local emacsclient27 and emacsclient28 - same result. Thanks