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: Adding with-editor to Emacs? Date: Tue, 17 Oct 2023 20:09:18 +0200 Message-ID: <87v8b5t92p.fsf@gmx.de> References: <85msy98sni.fsf@elpa.gnu.org> <87r0nidkmt.fsf@bernoul.li> <83bkelc1p1.fsf@gnu.org> <87fs3xwzxm.fsf@bernoul.li> <837cp9bur7.fsf@gnu.org> <87a5u5wskw.fsf@bernoul.li> <87r0ltzgwe.fsf@gmx.de> <87pm1dnp50.fsf@ledu-giraud.fr> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35810"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Jonas Bernoulli , Eli Zaretskii , stefankangas@gmail.com, emacs-devel@gnu.org, rms@gnu.org To: Manuel Giraud Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 17 20:10:16 2023 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 1qsoWG-00098B-F3 for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Oct 2023 20:10:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsoVT-0000fW-Fn; Tue, 17 Oct 2023 14:09:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsoVS-0000f6-8w for emacs-devel@gnu.org; Tue, 17 Oct 2023 14:09:26 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qsoVQ-0006CS-M8; Tue, 17 Oct 2023 14:09:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1697566159; x=1698170959; i=michael.albinus@gmx.de; bh=hoSa4QY9Jb8A/r2U4Xs7VykDCcXwhrO+IQRVGkFy0dU=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References: Date; b=FcuNPjZ4fQEt0hE0VsfybdruVj+Q+kMRFFTSD5XW9Xh04mxX+8JFavSSLziAZ40O fSZvErI4dXWFepKpSB/6eb/RXHWUwMQQPkG8ZoVJItTsUgPwDl/2KGIEhQqEbflm4 e8qnrFfLy20jfLPbymx4HRWShRwUnMZD7gU0z7R7PFF759QuRW7iOdZ2KesmvgQ3M 7ZIdB0OFPX9tYB7/Eie5wxRSujsrio1FS/xBlIDg4/SGadQgX+zeXRj7P1CBda++6 zn75yeuQNC1pahcbHYwtp3ZXXEeAvlOVcfjaxcUg1wbLVO5/px8ZH0UR3AUu+p1kW 8ptVO3YqJSMRgeQ+CQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.39.30]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MHG8m-1qoSvn0vom-00DJpd; Tue, 17 Oct 2023 20:09:19 +0200 In-Reply-To: <87pm1dnp50.fsf@ledu-giraud.fr> (Manuel Giraud's message of "Tue, 17 Oct 2023 19:18:51 +0200") X-Provags-ID: V03:K1:Gk/tWyVVVefLrnr2IeNwJoozjIkZFscMmvrGg1tYxwohjuuXPCK dD/OetRjirw4k4IliK30a1LWwza5eVj8vp98PipaOrsc05Ncz5/gixzmOeoJH2pJxqZphbD 5hx0/bTyamK2vk6RiEe7UW/4pWIUfMpnwC5Rnf6Z3zDVuXtDWgIwRZi4VPD8Wv1Q2OzCh9n THdZ1x28rZmnV1c1YEeEQ== UI-OutboundReport: notjunk:1;M01:P0:IxDLNNMtWZU=;NgPPNwR357XFLzsadfWE7Zte0SI 54bzzRjbRpFxllOSo7/x9Ek5lAz/s2McQKLJEUlwrGZrA86L0+pVmPBetqpUWe4fv/GDl7Zkc bJMCdC1n3HLbzPK4o3VQEBxPdyTHiG5Yn5sRO6QaCT8wnpgLvfTSgPppwk8Sb5DYSU7JOelqq L8FqGjyUiNjatoVgQ2705JBse2DOFE9vKIIPdVYxiR6RHDg9ZrDBYP01dt+jlT3UKwlMZ+PW2 MJKVQGiIINVN9DwcDiRY4H4P7qm2/BXLph5zpgnlLOCLCGkHczBYhglgzonFP6DOkhKeKrc3Y sRSAWe4A+RKIcFK8xA8Vztk6ccL4lAxH64u6tz59d81aQ0ORt2QMyBs0PjaCZwai1coj4vsz5 xsHhVQUnRifRgJp6KrUbQZns2QknElODSTmkAHbQjsuFIhDL6RvBHG8csnvU4rfKBuYQyJEDk DfzHfKKeIdR19xNp50/X6IliPfOkhgDOkCqroQcErqFtnwXRUfql5ro08urjKmTJhRKw/6KWB VopexSbfZ5xEaYbxxVsiO7GqLlPCXgnqH1y2H51IuWqNIABszx/hvwsZO7+cV5K+h20Fz7no7 6qFxBJwl0HSu9w5KDDTxVjHPcC/Uz5mD7n9rrTjuXKOxH0XHqOvG1KS6tFQLINGxCpbxFT7tl ovzdoLsX+vfnSp4fRwKCv2KKB8SX3Ngz003t3frZn22QZaQCLPSWIUir9spnqQbYMBYkx6NaF n944mDs4RxLsPC7nl5Zg/26gOII4zZcDjw9+w29q2+sBhQwWeDBm6JZQwUNZhopv/3ryrw+8 Received-SPF: pass client-ip=212.227.17.20; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=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.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311541 Archived-At: Manuel Giraud writes: Hi Manuel, >>>> If we want a better/safer client-server connections for remote hosts, >>>> it should be handled in Tramp, I think. >>> >>> Probably and it would be great if Tramp did handle that, but I don't >>> even use Tramp except when users report that there is an issue when >>> using Tramp with one of my packages. So I am not the right person to >>> implement it there, but if Michael were to tackle this, then maybe I >>> would have some insights that could be useful. Or not. >> >> Finally, I've found a free time slot to check with-editor. In fact, >> emacsclient can also be called on a remote machine in order to reach the >> local Emacs server instance. What is needed is, that emacsclient must >> tell the Emacs server where it is located. > > Do you an emacsclient on the server to do this? AFAIU, with-editor does > not need this. with-editor has its own implementation (a shell script) for communication between the local Emacs server and a remote host. I have been asked how this could be replaced by using a remote emacsclient and Tramp. Especially, how the file names should look like. IIUC the with-editor code, emacsclient is not used in the remote case. Best regards, Michael.