[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: possible to exchange server and client?

From: Peter Dyballa
Subject: Re: possible to exchange server and client?
Date: Mon, 14 Jul 2008 09:48:59 +0200

Am 14.07.2008 um 02:20 schrieb anhnmncb:

So I want to know, in this condition, if I can start an emacsclient in console, then let it become server(old emacs server on Xorg becomes client now), then close the emacs(old server) on Xorg, restart Xorg, run emacsclient, let it become server again?

With an un-patched GNU Emacs you can't start GNU Emacs via emacsclient. When emacsclient can't contact a running server, it will tell you this and quit. So you need to launch GNU Emacs.

There can't be a difference between a server started from GNU Emacs running in some terminal emulation or being the client of some window system just as a spoon is a spoon, no matter whether it's in your mouth, in a drawer, in a dish-washer, or in a shop.

If can, I can restart Xorg without quitting emacs.

As long as GNU Emacs keeps running in some terminal emulation that survives stopping of the X server and that is (again) authorised to contact the new X server and open clients on this display, it should work.

Me, I can't see how the terminal emulation can survive X server's end. You're logging in without window system and you're starting it by hand?

Another option is to use session and desktop. These can re-establish GNU Emacs's state before it was quit. The only problem is that you have to quit GNU Emacs by hand. If it receives a signal from the crashing or quitting X server, it does not save the recent state. At least I have not found a way to achieve this ...



People say that if you play Microsoft CD's backwards, you hear satanic things, but that's nothing, because if you play them forwards, they install MS Windows.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]