unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to share one session from a terminal frame and x window frame
@ 2012-07-10 11:47 James Kang
  2012-07-10 15:31 ` Tassilo Horn
  2012-07-11 19:20 ` Ken Goldman
  0 siblings, 2 replies; 3+ messages in thread
From: James Kang @ 2012-07-10 11:47 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 352 bytes --]

Hi,
I am trying to use both x-display frame at work and ssh-screen-frame at
home.
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.
I mean, C-x b does not show the same buffers.

Am i misunderstanding something here or wrong command?

Thanks in advance.

James

[-- Attachment #2: Type: text/html, Size: 407 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to share one session from a terminal frame and x window frame
  2012-07-10 11:47 How to share one session from a terminal frame and x window frame James Kang
@ 2012-07-10 15:31 ` Tassilo Horn
  2012-07-11 19:20 ` Ken Goldman
  1 sibling, 0 replies; 3+ messages in thread
From: Tassilo Horn @ 2012-07-10 15:31 UTC (permalink / raw)
  To: help-gnu-emacs

James Kang <marchkang@gmail.com> 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




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to share one session from a terminal frame and x window frame
  2012-07-10 11:47 How to share one session from a terminal frame and x window frame James Kang
  2012-07-10 15:31 ` Tassilo Horn
@ 2012-07-11 19:20 ` Ken Goldman
  1 sibling, 0 replies; 3+ messages in thread
From: Ken Goldman @ 2012-07-11 19:20 UTC (permalink / raw)
  To: help-gnu-emacs

Would make-frame-on-display work?

On 07/10/2012 07:47 AM, James Kang wrote:
> Hi,
> I am trying to use both x-display frame at work and ssh-screen-frame at
> home.
> 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.
> I mean, C-x b does not show the same buffers.
>
> Am i misunderstanding something here or wrong command?




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-11 19:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-10 11:47 How to share one session from a terminal frame and x window frame James Kang
2012-07-10 15:31 ` Tassilo Horn
2012-07-11 19:20 ` Ken Goldman

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).