From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud via "Emacs development discussions." Newsgroups: gmane.emacs.devel Subject: Re: Adding with-editor to Emacs? Date: Tue, 17 Oct 2023 21:26:59 +0200 Message-ID: <87lec1nj7g.fsf@ledu-giraud.fr> 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> <87v8b5t92p.fsf@gmx.de> Reply-To: Manuel 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="1075"; 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: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 17 21:27:57 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 1qspjP-000ASW-R3 for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Oct 2023 21:27:55 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qspif-000411-4m; Tue, 17 Oct 2023 15:27:09 -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 1qspid-00040t-Nd for emacs-devel@gnu.org; Tue, 17 Oct 2023 15:27:07 -0400 Original-Received: from ledu-giraud.fr ([51.159.28.247]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qspib-0005uS-Co; Tue, 17 Oct 2023 15:27:07 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=1byy9vX8 Y0mmf1Ws8/XRumEt3RQiXU0X4oj7oYc50eM=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=mXUacHUaJ9qtH+lPBpPuNpYvhPjGlm 7pSAhuUdJtnUuY7EG3CqxLISzwH/u6915QvjSQAv3pQnXWdYPmq7wRDg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=1byy9vX8Y0mmf1Ws 8/XRumEt3RQiXU0X4oj7oYc50eM=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=pFxfD9HNhFxcox1YlNXFLuaaByYm3tKXjKEHF6 IrmbKEi2mLvBJyXpYJjH00nifgJA3scvbPCPzj+lOx/r8j/BFRcFYOZQFEA+KupRN/CgeC YaWLEKNmmvpxXURLc7FDkrgs29Xw6XXDJasp+8ejgLvaCC8DzfjxB4Ll+VC8VMacjHl4sU ArJObGaR1rOs7AmYXtmx+M1mdPYeJIwIF2o5LRPXDLW8hytRNV76O7ULeJ2raqcSsMhRBi Z8aBTUhlpHASqN9jNL44q8zOi1Hd+qO1Q6VlHQF2qrE01/64S6P7xz4YhfL505WmmzY9gj sS5js1zLfWOyUQVaV870Rz8A== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 833857e3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 17 Oct 2023 21:27:01 +0200 (CEST) In-Reply-To: <87v8b5t92p.fsf@gmx.de> (Michael Albinus's message of "Tue, 17 Oct 2023 20:09:18 +0200") Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@ledu-giraud.fr; helo=ledu-giraud.fr 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, SPF_HELO_PASS=-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:311547 Archived-At: Michael Albinus writes: Hi Michael, >>>>> 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. Ok, thanks for this explanation. But I don't think that requiring emacsclient on the server will be very convenient. > IIUC the with-editor code, emacsclient is not used in the remote case. I understood the same: in the remote case, EDITOR is set to a shell script hack. BTW, I don't know what is the use case of with-editor if it is not remote: in the local case, "export EDITOR=emacsclient" should be sufficient. -- Manuel Giraud