From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: anhnmncb Newsgroups: gmane.emacs.help Subject: Re: possible to exchange server and client? Date: Mon, 14 Jul 2008 20:47:46 +0800 Message-ID: <871w1w7hu5.fsf@gentoo.hasee.cpu> References: <87lk061tdg.fsf@gentoo.hasee.cpu> <873amdb9k2.fsf@gentoo.hasee.cpu> <2CF49115-4120-4873-9C5E-EA4AF025D746@Web.DE> <87ej5wpzvm.fsf@gentoo.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1216040537 9143 80.91.229.12 (14 Jul 2008 13:02:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 13:02:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 14 15:03:04 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 1KINhc-00041Y-KS for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 15:02:52 +0200 Original-Received: from localhost ([127.0.0.1]:36990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KINgk-0003fJ-HF for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 09:01:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KINg2-0003e5-MK for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:01:15 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KINg0-0003dS-VK for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:01:14 -0400 Original-Received: from [199.232.76.173] (port=47885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KINg0-0003dH-OG for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:01:12 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:34021 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KINg0-0007Ys-8l for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:01:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KINfy-0007qz-4M for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 13:01:10 +0000 Original-Received: from 220.173.77.241 ([220.173.77.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 13:01:10 +0000 Original-Received: from anhnmncb by 220.173.77.241 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 13:01:10 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 220.173.77.241 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:0aDVKbof4oTQtfquokhzikcxM5U= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:55547 Archived-At: Peter Dyballa writes: > Am 14.07.2008 um 11:40 schrieb anhnmncb: > >> 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. > > It's – to me – not a question wether something works correctly or not. > To me it looks like a difference in default-frame-alist and > initial-frame-alist. Check these! > > Make also tests with command line options like -q and -Q to see > customised and "vanilla" behaviour. hmm, -Q works, I must have to find what's wrong with my config. >>>> >> 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? > > > There is no frame, window, or particle of GNU Emacs that can claim: > "Hey, *I* am the server!" (You can start it form ~/.emacs!) As long > as in the multi-tty GNU Emacs 23.0.60 one particle of that Emacs is > left (even when running in the background, but not when completely > suspended, i.e., C-z without fg in terminal) which started in any > particle the server, the server is on, running, and accessible from > emacsclient. *Each* particle is the server and every particle could > have been a client. It's as with hard-links. Why don't you try it? > You dont need to quit first Emacs, just stop its server (although not > really needed, but less complication on the command line) and launch > another instance of GNU Emacs! There aren't so many on this list that > did the same as you are trying to do. Therefore the lack of good > replies. > > You won't learn much English when just testing (and not writing), but > doing (in)sane experiments will make you experienced and sure about > what you are doing. Or trying to ... What I do is, run emacs in console, then M-x server-start. Startx, run emacsclient -c, then M-x server-start, it says: The current server still has clients; delete them? (y or n) I answser y, then the frame is killed. But I don't want to kill this frame, I want server-start from it, so it becomes a server. Thank you for your patient very much! -- Regards, anhnmncb gpg key: 44A31344