From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: possible to exchange server and client? Date: Mon, 14 Jul 2008 09:48:59 +0200 Message-ID: <2CF49115-4120-4873-9C5E-EA4AF025D746@Web.DE> References: <87lk061tdg.fsf@gentoo.hasee.cpu> <873amdb9k2.fsf@gentoo.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1216021775 4190 80.91.229.12 (14 Jul 2008 07:49:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 07:49:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: anhnmncb Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 09:50:22 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KIIpB-0002dG-AP for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 09:50:21 +0200 Original-Received: from localhost ([127.0.0.1]:43416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIIoJ-0005mn-0E for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 03:49:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIInx-0005l3-OB for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 03:49:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIInw-0005kq-2h for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 03:49:05 -0400 Original-Received: from [199.232.76.173] (port=39228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIInv-0005kn-TM for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 03:49:03 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:50780) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIInv-0000AX-J4 for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 03:49:03 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id F2717E3AF831; Mon, 14 Jul 2008 09:49:01 +0200 (CEST) Original-Received: from [91.35.253.185] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KIIns-0005Zk-00; Mon, 14 Jul 2008 09:49:00 +0200 In-Reply-To: <873amdb9k2.fsf@gentoo.hasee.cpu> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/gxbyBytkMWf5LYorcOgidLch3wpJXnsynM/l5 8TSMvFaqRxw5oqF4PAcnQJV7ZLjuHFUmV7UkGwV9zUcf1N8OOB CUfFYXDa6WuTzO1fN7Nw== X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55531 Archived-At: 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 ... -- Greetings Pete 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.