From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: How to share one session from a terminal frame and x window frame Date: Tue, 10 Jul 2012 17:31:57 +0200 Message-ID: <87vchvfx8y.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1341934392 14758 80.91.229.3 (10 Jul 2012 15:33:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Jul 2012 15:33:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 10 17:33:12 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SocR1-0004WO-24 for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 17:33:07 +0200 Original-Received: from localhost ([::1]:56498 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SocR0-0003Mi-3n for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Jul 2012 11:33:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SocQa-0003Lk-AJ for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 11:33:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SocQG-0000F5-Mt for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 11:32:39 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50862) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SocQG-0000Em-Gh for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 11:32:20 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SocQD-0003Ir-Fc for help-gnu-emacs@gnu.org; Tue, 10 Jul 2012 17:32:17 +0200 Original-Received: from tsdh.uni-koblenz.de ([141.26.67.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jul 2012 17:32:17 +0200 Original-Received: from tassilo by tsdh.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Jul 2012 17:32:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: tsdh.uni-koblenz.de User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) Cancel-Lock: sha1:D8eXRX99UWtu6oR1X6C4VrVIkkw= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85763 Archived-At: James Kang writes: Hi James, > What i did try was emacs --daemon and > Emacsclient -c at work > Emacsclient -t at home but > No same buffers are visible from text frame at home. Essentially, that's correct, but assuming the emacs daemon is running at work, you need to do local$ ssh username@work.com work$ emacsclient -t You can also setup the emacs at work and at home to be able to connect directly without firing up a new ssh shell, but that's a bit more complicated. ,----[ (info "(emacs)emacsclient Options") ] | `-f SERVER-FILE' | `--server-file=SERVER-FILE' | Specify a "server file" for connecting to an Emacs server via TCP. | | An Emacs server usually uses an operating system feature called a | "local socket" to listen for connections. Some operating systems, | such as Microsoft Windows, do not support local sockets; in that | case, Emacs uses TCP instead. When you start the Emacs server, | Emacs creates a server file containing some TCP information that | `emacsclient' needs for making the connection. By default, the | server file is in `~/.emacs.d/server/'. On Microsoft Windows, if | `emacsclient' does not find the server file there, it looks in the | `.emacs.d/server/' subdirectory of the directory pointed to by the | `APPDATA' environment variable. You can tell `emacsclient' to use | a specific server file with the `-f' or `--server-file' option, or | by setting the `EMACS_SERVER_FILE' environment variable. | | Even if local sockets are available, you can tell Emacs to use TCP | by setting the variable `server-use-tcp' to `t'. One advantage of | TCP is that the server can accept connections from remote machines. | For this to work, you must (i) set the variable `server-host' to | the hostname or IP address of the machine on which the Emacs server | runs, and (ii) provide `emacsclient' with the server file. (One | convenient way to do the latter is to put the server file on a | networked file system such as NFS.) | | When the Emacs server is using TCP, the variable `server-port' | determines the port number to listen on; the default value, `nil', | means to choose a random port when the server starts. `---- Bye, Tassilo