Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Strange things with client-server in 24

16 views
Skip to first unread message

Kamil Jońca

unread,
Nov 8, 2012, 3:51:48 AM11/8/12
to

1. Run emacs24 with server on machine A
2. From machine B try to ssh -X A
3. run something like "emacsclient -c -d ${DISPLAY} -n" within ssh
session created earlier.
(so far everything works ok - I have frame on machine B, and can switch
to gnus buffer, for example)

4 C-x/C-c or C-x 5 0 - frame disappears
5. Then I try to exit ssh sesion, but session cannot disconnect - it
looks like that emacs server still used it somehow.
6. When I kill ssh on machine B, then emacs on machine A disappears :(

What am I missing?
#v+
GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian
#v-

KJ

--
http://modnebzdury.wordpress.com/2009/10/01/niewiarygodny-list-prof-majewskiej-wprowadzenie/
Retirement means that when someone says "Have a nice day", you
actually have a shot at it.

Kamil Jońca

unread,
Nov 8, 2012, 11:55:49 AM11/8/12
to
kjo...@poczta.onet.pl (Kamil Jońca) writes:

> 1. Run emacs24 with server on machine A
> 2. From machine B try to ssh -X A
> 3. run something like "emacsclient -c -d ${DISPLAY} -n" within ssh
> session created earlier.
> (so far everything works ok - I have frame on machine B, and can switch
> to gnus buffer, for example)
>
> 4 C-x/C-c or C-x 5 0 - frame disappears
> 5. Then I try to exit ssh sesion, but session cannot disconnect - it
> looks like that emacs server still used it somehow.
> 6. When I kill ssh on machine B, then emacs on machine A disappears :(
>
> What am I missing?
> #v+
> GNU Emacs 24.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-09-09 on trouble, modified by Debian
> #v-

It looks like emacs without gtk behaves better - no hangs.
KJ

--
http://sporothrix.wordpress.com/2011/01/16/usa-sie-krztusza-kto-nastepny/
I want to kill everyone here with a cute colorful Hydrogen Bomb!!

William Gardella

unread,
Nov 10, 2012, 1:57:23 AM11/10/12
to
kjo...@poczta.onet.pl (Kamil Jońca) writes:

> It looks like emacs without gtk behaves better - no hangs.
> KJ

Yeah, this is a known issue with libgtk. It gets very confused by being
abruptly disconnected from an X server (including machine B's X server
in your scenario). Emacs is probably the only GTK-using application
that has the ability to attach to and detach from X servers, so don't
expect a fix. :-/

Emacs with ./configure --with-x-toolkit=no is very nice, and is fully
functional as an X application. It's particularly nice if, like many of
us here, you don't care about having a tool bar or menu bar.
0 new messages