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 19:18:51 +0200 Message-ID: <87pm1dnp50.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> 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="10332"; 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 19:19:38 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 1qsnjF-0002Oh-4j for ged-emacs-devel@m.gmane-mx.org; Tue, 17 Oct 2023 19:19:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qsnig-000489-Vx; Tue, 17 Oct 2023 13:19:03 -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 1qsnif-00047u-BH for emacs-devel@gnu.org; Tue, 17 Oct 2023 13:19:01 -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 1qsnid-00042e-4w; Tue, 17 Oct 2023 13:19:01 -0400 DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=rXB0R2TR b9idXsesucAO/Qe24a80iTrISMGOfwd+6n8=; h=date:references:in-reply-to: subject:cc:to:from; d=ledu-giraud.fr; b=bQJRZtgRaujIAngZ2XjV8t58oninrl 2OMTsJ5KV2Tch73dMhAhqP2PgF10Vx8ogdzBpP7YlyJd2RIgmg1t/3Bg== DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=rXB0R2TRb9idXses ucAO/Qe24a80iTrISMGOfwd+6n8=; h=date:references:in-reply-to:subject: cc:to:from; d=ledu-giraud.fr; b=B7KTOTZ4sYh5D37FDk+SoMX3qRDjt0aV/FS1gG Dr55RdcOoBBoHrv8szyyk1htxSy8mOFmT4lmNYqtwY+O+bbfccIZ689wOUem7OzmN0gjwi 1XnkmlV0223r6u6MuhgHoJUvdePGJmVGCz/gND5w9XKNOcrdGIbhJIMDAZfj/iiQH3huSu AmalH9edd+l5KYlBQUt81CsACiG9UVOVlVOIONd8pD8/xRIrXRZKW6omvgB/ovxkUvFsi+ I0c0iJeiHgTtY4krIjK8bH1iLo2HuSJyfC3H2AlgiTPvj37yvKfinP47som2/iaKFJ8QGG 9FAh91koym7jH7QwTCRyOlZQ== Original-Received: from computer ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 64057cda (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Tue, 17 Oct 2023 19:18:54 +0200 (CEST) In-Reply-To: <87r0ltzgwe.fsf@gmx.de> (Michael Albinus's message of "Tue, 17 Oct 2023 12:23:45 +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:311540 Archived-At: Michael Albinus writes: > Jonas Bernoulli writes: > > Hi Jonas, > >>>> - It implements a "sleeping editor". This is a shell script, which >>>> outputs a request on stdout and then waits to be told to return. >>>> With-editor use a process filter too look for that output and when >>>> it sees it, it responds in a similar fashion to server.el. This >>>> is useful because makes it possible to do this over Tramp. (I >>>> believe this could also be done using regular emacsclient+server.el, >>>> but that is difficult to setup and a security risk if not done >>>> correctly. >>> >>> 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. -- Manuel Giraud