unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: xscript@gmx.net (Lluís)
Cc: Ken Raeburn <raeburn@raeburn.org>,
	Emacs Developers <emacs-devel@gnu.org>
Subject: Re: Remote TCP server through ssh tunnel
Date: Mon, 25 Oct 2010 12:28:37 -0400	[thread overview]
Message-ID: <jwvd3qynswr.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <878w1m5tdw.fsf@ginnungagap.bsc.es> ("Lluís"'s message of "Mon, 25 Oct 2010 14:50:03 +0200")

>> ":0.0" is the name you generally use for connecting to the local X11
>> display on the machine running the X program.  That's what you've got
>> on the client, and what emacsclient passes over to the emacs server
>> process.  Unfortunately since that's running on a different machine,
>> the local X display *there* -- if there even is one -- is not the one
>> on your client machine.
> What I expected was to run emacsclient as a sort of UI client
> interacting with a remote server.

emacsclient, as it is implemented currently, is an application that just
sends some commands to the Emacs server and then exits (in the most
complex case it will wait for Emacs to send a reply before exiting).

We could try to make it more complex and have emacsclient to care of
doing the display: that would make it more "robust" in the sense that it
would work in more circumstances, but that would mean designing and
implementing an ad-hoc protocol.  Tho maybe we could do it by reusing an
existing system: e.g. we could have emacsclient create something like an
lbx tunnel.  And of course we'd want to do the same for ttys.

> In any case, I suppose emacs is not ready for such a client-server
> interaction, although I don't really know if that would be hard to
> achieve.

I think that if we reuse something like lbx, it might not be too difficult.

> That's what I do, but is not comfortable for high delay network
> connections. As I said, I expected to run locally "as much as possible",
> but modify everything remotely.

If you want to do as much as possible locally, I think that Tramp is
your friend.


        Stefan



  parent reply	other threads:[~2010-10-25 16:28 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <alpine.LFD.1.10.0808311533530.2934@froglet.home.mavit.org.uk>
2008-08-31 18:22 ` Server port Stefan Monnier
     [not found]   ` <alpine.LFD.1.10.0808312118210.2934@froglet.home.mavit.org.uk>
2008-09-01  3:02     ` Stefan Monnier
2010-10-23 18:44       ` Peter Oliver
2010-10-23 19:29         ` Leo
2010-10-23 19:38           ` Juanma Barranquero
2010-10-23 20:01             ` Leo
2010-10-24  1:11         ` Stefan Monnier
2010-10-24 16:48           ` Remote TCP server through ssh tunnel [Was: Re: Server port] Lluís
2010-10-24 21:50             ` Ken Raeburn
2010-10-25 12:50               ` Remote TCP server through ssh tunnel Lluís
2010-10-25 15:33                 ` Chad Brown
2010-10-25 16:28                 ` Stefan Monnier [this message]
2010-10-25 17:28                 ` Peter Oliver
2010-10-25 20:22                   ` Lluís
2010-10-26  4:05                     ` Ken Raeburn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvd3qynswr.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=raeburn@raeburn.org \
    --cc=xscript@gmx.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).