From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: Re: Back to emacsclient/server Date: Tue, 24 Oct 2006 20:31:07 +0100 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161718397 30795 80.91.229.2 (24 Oct 2006 19:33:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 24 Oct 2006 19:33:17 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 24 21:33:16 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GcS10-0004kc-R8 for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 21:32:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcS10-00037K-CZ for ged-emacs-devel@m.gmane.org; Tue, 24 Oct 2006 15:32:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GcS0e-00033d-7k for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:32:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GcS0d-00033F-Ng for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:32:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GcS0d-000337-71 for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:32:23 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GcS0c-0006HH-JE for emacs-devel@gnu.org; Tue, 24 Oct 2006 15:32:23 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GcRzz-0004Tc-BR for emacs-devel@gnu.org; Tue, 24 Oct 2006 21:31:43 +0200 Original-Received: from fw01.cmbrmaks.akamai.com ([80.67.64.10]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Oct 2006 21:31:43 +0200 Original-Received: from tzz by fw01.cmbrmaks.akamai.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 24 Oct 2006 21:31:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: emacs-devel@gnu.org Original-Lines: 44 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: fw01.cmbrmaks.akamai.com X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:lk9h1tg8ICmiBBGlKzovg0kHxKQ= X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:61121 Archived-At: On 24 Oct 2006, monnier@iro.umontreal.ca wrote: >>>> This may seem like an offbeat suggestion, but I think Emacs could >>>> behave like a SSH daemon for emacsclient/server interactions.. >>> >>> You mean: no change to server.el, and simply change emacsclient such that >>> it runs emacsclient on the server host via ssh? >>> >>> I used to do that with a script and it's trivial to do, indeed. > >> No, I mean: > >> 1) on the client side > >> ssh tzz@hostname:4567 '(function)' > >> 2) on the Emacs side, running on `hostname' with IP `ip' > >> ; bind to ip:4567 >> (sshd ip 4567) >> ; add a user for remote execution, with the following keys >> (sshd-add-keys "tzz" "~/.ssh/identity" "~/.ssh/id_dsa") > >> So emacsclient would be gone, and server.el would be sshd.el or >> something similar. > > What would be the benefit compared to what I suggested (i.e. on the server > side just a unix-socket, and on the client side "ssh machine emacsclient > ...")? 1) no quoting required, you're talking directly to Emacs--this is very convenient, shells can make quotes hell 2) no SSHD needed on server machine (e.g. Windows users would like that) 3) you can open just Emacs, not general SSHD, to outside access 4) Emacs "user" (named in sshd-add-keys) doesn't have to be a valid local system user 5) no need to download, compile, and set up emacsclient/gnuclient Ted