From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steinar Bang Newsgroups: gmane.emacs.help Subject: Re: Is it possible to use emacsclient as the Gnome system editor? Date: Wed, 22 Nov 2006 08:53:22 +0100 Organization: Probably a good idea Message-ID: <87lkm3vrwt.fsf@bang.priv.no> References: <87irh9j5nj.fsf@bang.priv.no> <85ac2k27wp.fsf@lola.goethe.zz> <45631C99.6090307@student.lu.se> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1164182040 28894 80.91.229.2 (22 Nov 2006 07:54:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Nov 2006 07:54:00 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 22 08:53:58 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gmmvd-00059r-Le for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 08:53:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gmmvd-0006ns-79 for geh-help-gnu-emacs@m.gmane.org; Wed, 22 Nov 2006 02:53:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmmvS-0006nd-Fw for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 02:53:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmmvR-0006nR-VX for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 02:53:46 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmmvR-0006nO-SH for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 02:53:45 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GmmvR-00057V-Ov for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 02:53:46 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1GmmvG-00055G-2Y for help-gnu-emacs@gnu.org; Wed, 22 Nov 2006 08:53:34 +0100 Original-Received: from pat-gw.osl.fast.no ([217.144.235.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Nov 2006 08:53:34 +0100 Original-Received: from sb by pat-gw.osl.fast.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 22 Nov 2006 08:53:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-To: help-gnu-emacs@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pat-gw.osl.fast.no Mail-Copies-To: never User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:i0Koyy9menxZEqZ5YnqVGjc6SPU= 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:38880 Archived-At: >>>>> Lennart Borgman : > David Kastrup wrote: >> Lennart Borgman writes: >>> Basically: yes. However with the current emacsclient you have to >>> start emacs first. >> Not true. You can use `-a emacs' in the emacsclient invocation. [snip!] > Yes, you are right. However you have also to start emacs server in > your init files. That may be a problem for me, I think. Since my use pattern is to have multiple emacsen up an running (one for Gnus, and misc stuff, one for development, and occasionally one running as root, and also possibly emacsen running on development servers). I've also CVS-versioned my home directory, so I have the same setup files everywhere. I wonder if there is there some emacs lisp magic for my ~/.emacs, that could check for a running emacs server, and only start it if one isn't already running...? None of the server-* functions seems appropriate for this. I'm not sure what the LEAVE-DEAD argument of server-start does? Is this the same as what the documentation refers to as the prefix argument? (well, I'm not sure if I understood what that one did either...:-) ) Thanx! - Steinar