From: anhnmncb <anhnmncb@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: possible to exchange server and client?
Date: Mon, 14 Jul 2008 17:40:45 +0800 [thread overview]
Message-ID: <87ej5wpzvm.fsf@gentoo.hasee.cpu> (raw)
In-Reply-To: 2CF49115-4120-4873-9C5E-EA4AF025D746@Web.DE
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> 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.
I didn't mean start emacs via emacsclient, I meant *in this
condition* which emacs server has started in Xorg.
>
> 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.
But there has been. See two screenshots, first is org-mode in emacs
server, which is running in the dtach sesstion on urxvt; second is
org-mode in emacsclient which is with the same emacs server:
http://paste.ubuntu.org.cn/i8055
http://paste.ubuntu.org.cn/i8054
You can see, in emacsclient, the column view can't display properly,
it's not relative to the color-theme. Emacs server works well.
>> 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 ...
I think my words have misled you, sorry.
I start emacs server in console(differ it with x terminal), and use
emacsclient on xorg. But you see, emacsclient has something wrong with
org-mode's column view. So I want to use emacs server instead of
emacsclient.
(hmm, maybe I got why you can't understand me, what I mean emacs server,
is that the server frame, emacsclient is the client frame.)
Now what I want is: Start emacs server on xorg, then run an emacsclient
in console and make it to be a server, so the old client becomes new
server and the old server becomes client?
--
Regards,
anhnmncb
gpg key: 44A31344
next prev parent reply other threads:[~2008-07-14 9:40 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-13 1:10 possible to exchange server and client? anhnmncb
2008-07-13 20:13 ` Peter Dyballa
2008-07-14 0:20 ` anhnmncb
2008-07-14 7:48 ` Peter Dyballa
2008-07-14 9:40 ` anhnmncb [this message]
2008-07-14 11:47 ` Peter Dyballa
2008-07-14 12:47 ` anhnmncb
2008-07-14 13:58 ` Peter Dyballa
2008-07-14 14:37 ` anhnmncb
[not found] ` <mailman.14692.1216028482.18990.help-gnu-emacs@gnu.org>
2008-07-14 10:02 ` Pascal J. Bourguignon
[not found] ` <mailman.14687.1216021747.18990.help-gnu-emacs@gnu.org>
2008-07-14 9:56 ` Pascal J. Bourguignon
2008-07-14 12:12 ` anhnmncb
[not found] ` <mailman.14698.1216038116.18990.help-gnu-emacs@gnu.org>
2008-07-14 12:47 ` Pascal J. Bourguignon
2008-07-14 14:35 ` anhnmncb
2008-07-14 15:13 ` Peter Dyballa
2008-07-14 15:31 ` anhnmncb
[not found] ` <mailman.14703.1216046707.18990.help-gnu-emacs@gnu.org>
2008-07-14 16:39 ` Pascal J. Bourguignon
2008-07-14 23:22 ` anhnmncb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ej5wpzvm.fsf@gentoo.hasee.cpu \
--to=anhnmncb@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.