unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs and emacsclient on different displays
@ 2009-10-27  4:26 Jim Barbour
  2009-10-30 15:20 ` Suvayu Ali
  2009-10-30 15:47 ` suvayu ali
  0 siblings, 2 replies; 6+ messages in thread
From: Jim Barbour @ 2009-10-27  4:26 UTC (permalink / raw)
  To: help-gnu-emacs

Hey Folks,

Should I be able to run emacs and emacsclient on different displays?

i.e. start emacs on my linux machine in my office, set a server name
and start an emacs server.  Do work.  Then, come home, ssh into the
office, and run emacsclient and use the same buffers I was using at
work.   I'd like all of this to be in X windows, not in a TTY.

i.e.

host1 % echo DISPLAY
localhost:0.0
host1 % emacs...
eval: (setq server-name "test1")
eval: (start-server)
...

<later>

host1 % echo $DISPLAY
localhost:14.0
host1 % emacsclient -s test1 -c foo
Waiting for Emacs...X11 connection rejected because of wrong authentication.
*ERROR*: Connection lost to X server `localhost:14.0'

However, if I run xterm at that same prompt, it comes up just fine.

Can anyone let me know if what I want to do here is possible, and what
I might be doing wrong?

Thanks Very Much,

Jim




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

* Re: emacs and emacsclient on different displays
       [not found] <mailman.9563.1256660726.2239.help-gnu-emacs@gnu.org>
@ 2009-10-30  6:07 ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2009-10-30  6:07 UTC (permalink / raw)
  To: help-gnu-emacs

> Should I be able to run emacs and emacsclient on different displays?

Yes.

> host1 % echo $DISPLAY
> localhost:14.0
> host1 % emacsclient -s test1 -c foo
> Waiting for Emacs...X11 connection rejected because of wrong authentication.
> *ERROR*: Connection lost to X server `localhost:14.0'

Does "xterm" bring up an xterm?  Could it be that your original "emacs"
was started with a different .Xautority file, maybe?
I.e. compare $XAUTHORITY in each cases (ideally it should be
empty/undefined in each case).


        Stefan


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

* Re: emacs and emacsclient on different displays
  2009-10-27  4:26 emacs and emacsclient on different displays Jim Barbour
@ 2009-10-30 15:20 ` Suvayu Ali
  2009-10-30 15:47 ` suvayu ali
  1 sibling, 0 replies; 6+ messages in thread
From: Suvayu Ali @ 2009-10-30 15:20 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Jim,

On Monday 26 October 2009 09:26 PM, Jim Barbour wrote:
> Should I be able to run emacs and emacsclient on different displays?
>
> i.e. start emacs on my linux machine in my office, set a server name
> and start an emacs server.  Do work.  Then, come home, ssh into the
> office, and run emacsclient and use the same buffers I was using at
> work.   I'd like all of this to be in X windows, not in a TTY.
>
> i.e.
>
> host1 % echo DISPLAY
> localhost:0.0
> host1 % emacs...
> eval: (setq server-name "test1")
> eval: (start-server)
> ...
>
> <later>
>
> host1 % echo $DISPLAY
> localhost:14.0
> host1 % emacsclient -s test1 -c foo
> Waiting for Emacs...X11 connection rejected because of wrong authentication.
> *ERROR*: Connection lost to X server `localhost:14.0'
>
> However, if I run xterm at that same prompt, it comes up just fine.
>
> Can anyone let me know if what I want to do here is possible, and what
> I might be doing wrong?
>
> Thanks Very Much,

Look at this message, 
http://lists.gnu.org/archive/html/help-gnu-emacs/2009-09/threads.html. 
The rest of the thread is also very instructive about how emacsclient 
and tramp works.

GL

> Jim
-- 
Suvayu

Open source is the future. It sets us free.




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

* Re: emacs and emacsclient on different displays
  2009-10-27  4:26 emacs and emacsclient on different displays Jim Barbour
  2009-10-30 15:20 ` Suvayu Ali
@ 2009-10-30 15:47 ` suvayu ali
  2009-10-30 16:12   ` Jim Barbour
  1 sibling, 1 reply; 6+ messages in thread
From: suvayu ali @ 2009-10-30 15:47 UTC (permalink / raw)
  To: Jim Barbour; +Cc: help-gnu-emacs

Hi Jim,

I think my previous reply didn't go through, if this is a double post,
I apologise.

2009/10/26 Jim Barbour <jbar@barcore.com>:
> Hey Folks,
>
> Should I be able to run emacs and emacsclient on different displays?
>
> i.e. start emacs on my linux machine in my office, set a server name
> and start an emacs server.  Do work.  Then, come home, ssh into the
> office, and run emacsclient and use the same buffers I was using at
> work.   I'd like all of this to be in X windows, not in a TTY.
>
> i.e.
>
> host1 % echo DISPLAY
> localhost:0.0
> host1 % emacs...
> eval: (setq server-name "test1")
> eval: (start-server)
> ...
>
> <later>
>
> host1 % echo $DISPLAY
> localhost:14.0
> host1 % emacsclient -s test1 -c foo
> Waiting for Emacs...X11 connection rejected because of wrong authentication.
> *ERROR*: Connection lost to X server `localhost:14.0'
>
> However, if I run xterm at that same prompt, it comes up just fine.
>
> Can anyone let me know if what I want to do here is possible, and what
> I might be doing wrong?

Look at this message,
http://lists.gnu.org/archive/html/help-gnu-emacs/2009-09/threads.html.
The rest of the thread is also very instructive about how emacsclient
and tramp works.

GL
-- 
Suvayu

Open source is the future. It sets us free.




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

* Re: emacs and emacsclient on different displays
  2009-10-30 15:47 ` suvayu ali
@ 2009-10-30 16:12   ` Jim Barbour
  2009-10-30 17:40     ` Suvayu Ali
  0 siblings, 1 reply; 6+ messages in thread
From: Jim Barbour @ 2009-10-30 16:12 UTC (permalink / raw)
  To: suvayu ali; +Cc: help-gnu-emacs

Hey Suvaya,

Could you be more specific which thread you're referring to?

The page you provided has a whole lot of them :)

Thanks,

Jim

On Fri, Oct 30, 2009 at 08:47:20AM -0700, suvayu ali wrote:
> Hi Jim,
> 
> I think my previous reply didn't go through, if this is a double post,
> I apologise.
> 
> 2009/10/26 Jim Barbour <jbar@barcore.com>:
> > Hey Folks,
> >
> > Should I be able to run emacs and emacsclient on different displays?
> >
> > i.e. start emacs on my linux machine in my office, set a server name
> > and start an emacs server.  Do work.  Then, come home, ssh into the
> > office, and run emacsclient and use the same buffers I was using at
> > work.   I'd like all of this to be in X windows, not in a TTY.
> >
> > i.e.
> >
> > host1 % echo DISPLAY
> > localhost:0.0
> > host1 % emacs...
> > eval: (setq server-name "test1")
> > eval: (start-server)
> > ...
> >
> > <later>
> >
> > host1 % echo $DISPLAY
> > localhost:14.0
> > host1 % emacsclient -s test1 -c foo
> > Waiting for Emacs...X11 connection rejected because of wrong authentication.
> > *ERROR*: Connection lost to X server `localhost:14.0'
> >
> > However, if I run xterm at that same prompt, it comes up just fine.
> >
> > Can anyone let me know if what I want to do here is possible, and what
> > I might be doing wrong?
> 
> Look at this message,
> http://lists.gnu.org/archive/html/help-gnu-emacs/2009-09/threads.html.
> The rest of the thread is also very instructive about how emacsclient
> and tramp works.
> 
> GL
> -- 
> Suvayu
> 
> Open source is the future. It sets us free.
> 




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

* Re: emacs and emacsclient on different displays
  2009-10-30 16:12   ` Jim Barbour
@ 2009-10-30 17:40     ` Suvayu Ali
  0 siblings, 0 replies; 6+ messages in thread
From: Suvayu Ali @ 2009-10-30 17:40 UTC (permalink / raw)
  To: Jim Barbour; +Cc: help-gnu-emacs

Jim Barbour wrote:
> Hey Suvaya,
> 
> Could you be more specific which thread you're referring to?
> 
> The page you provided has a whole lot of them :)

I am extremely sorry Jim, its way too early in the morning for me and 
copied the wrong URL. :-p

The post I was referring to is this one,
http://lists.gnu.org/archive/html/help-gnu-emacs/2009-09/msg00100.html

Its part of the thread titled "Using tramp to connect to a remote emacs 
session". Sorry about the mix-up. Shouldn't be posting so early in the 
morning.

> Thanks,
> 
> Jim
-- 
Suvayu

Open source is the future. It sets us free.




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

end of thread, other threads:[~2009-10-30 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27  4:26 emacs and emacsclient on different displays Jim Barbour
2009-10-30 15:20 ` Suvayu Ali
2009-10-30 15:47 ` suvayu ali
2009-10-30 16:12   ` Jim Barbour
2009-10-30 17:40     ` Suvayu Ali
     [not found] <mailman.9563.1256660726.2239.help-gnu-emacs@gnu.org>
2009-10-30  6:07 ` Stefan Monnier

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