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 15:58:58 +0200 Message-ID: <6F2B01E7-802A-4824-8B3E-1131360F2E6B@Web.DE> References: <87lk061tdg.fsf@gentoo.hasee.cpu> <873amdb9k2.fsf@gentoo.hasee.cpu> <2CF49115-4120-4873-9C5E-EA4AF025D746@Web.DE> <87ej5wpzvm.fsf@gentoo.hasee.cpu> <871w1w7hu5.fsf@gentoo.hasee.cpu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v753.1) Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1216043974 21798 80.91.229.12 (14 Jul 2008 13:59:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jul 2008 13:59:34 +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 16:00: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 1KIObC-0008VC-Nw for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 16:00:19 +0200 Original-Received: from localhost ([127.0.0.1]:33266 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIOaK-00083g-KF for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jul 2008 09:59:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIOZz-00082Q-Pd for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:59:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIOZy-00080X-9v for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:59:03 -0400 Original-Received: from [199.232.76.173] (port=53567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIOZy-00080O-6k for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:59:02 -0400 Original-Received: from fmmailgate03.web.de ([217.72.192.234]:43145) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KIOZx-0002l2-SY for help-gnu-emacs@gnu.org; Mon, 14 Jul 2008 09:59:02 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate03.web.de (Postfix) with ESMTP id 8B45BE3B880E; Mon, 14 Jul 2008 15:59:00 +0200 (CEST) Original-Received: from [91.35.194.230] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.109 #226) id 1KIOZw-00049R-00; Mon, 14 Jul 2008 15:59:00 +0200 In-Reply-To: <871w1w7hu5.fsf@gentoo.hasee.cpu> X-Mailer: Apple Mail (2.753.1) X-Sender: Peter_Dyballa@web.de X-Provags-ID: V01U2FsdGVkX1/Ja1iZXbArUKxIvjByQhVLqE75rzpvh49457TR 5AsCVXGVsunNWqmGT+6fLkxEzudjAiXRAVgoreNflrvwTyptkI 8WfiN6g4aIbeh5uxyl/g== 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:55553 Archived-At: Am 14.07.2008 um 14:47 schrieb anhnmncb: > 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. Here you see that all Emacs particles launched until now belong to =20 one instance of GNU Emacs, that has something like "visible threads," =20= i.e., kind of rather independent "light-weight" processes that become =20= visible on the GUI/X11 surface. Every frame, window, console thing =20 has the same process ID, all can share the same buffers (write a very =20= unique word into *scratch* buffer and select this buffer in console =20 and all frames), and all are connected to one server! So a (server-start) in your init file is OK. And it's really OK, because when you launch =20 another Emacs, it will start its own and now on the system second =20 server, giving you the option to let emacsclient (-f, --server-=20 file=3DFILENAME or -s, --socket-name=3DFILENAME) work for this or for =20= that server. One problem exists: there does not seem to exist a way to select from =20= emacsclient the frame in which a file is opened ... -- Greetings Pete We are usually convinced more easily by reasons we have found =20 ourselves than by those which have occurred to others. =96 Blaise Pascal