From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: Is it possible to use emacsclient as the Gnome system editor? Date: Tue, 21 Nov 2006 14:59:23 +0100 Message-ID: <4563063B.1020401@student.lu.se> References: <87irh9j5nj.fsf@bang.priv.no> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1164117626 17675 80.91.229.2 (21 Nov 2006 14:00:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Nov 2006 14:00:26 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 21 15:00:23 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 1GmWAY-0000bg-Rq for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Nov 2006 15:00:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmWAY-0000vm-Cx for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Nov 2006 09:00:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GmW9w-0000cS-QK for help-gnu-emacs@gnu.org; Tue, 21 Nov 2006 08:59:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GmW9v-0000bQ-Uu for help-gnu-emacs@gnu.org; Tue, 21 Nov 2006 08:59:36 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GmW9v-0000b7-GP for help-gnu-emacs@gnu.org; Tue, 21 Nov 2006 08:59:35 -0500 Original-Received: from [80.76.149.213] (helo=ch-smtp02.sth.basefarm.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GmW9v-0001TR-9t for help-gnu-emacs@gnu.org; Tue, 21 Nov 2006 08:59:35 -0500 Original-Received: from c83-254-145-24.bredband.comhem.se ([83.254.145.24]:59367 helo=[192.168.123.121]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.63) (envelope-from ) id 1GmW9m-0007YH-6b for help-gnu-emacs@gnu.org; Tue, 21 Nov 2006 14:59:33 +0100 User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) Original-To: help-gnu-emacs@gnu.org In-Reply-To: <87irh9j5nj.fsf@bang.priv.no> X-Scan-Result: No virus found in message 1GmW9m-0007YH-6b. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1GmW9m-0007YH-6b e81c0efc671a9c6f6be354c242921c50 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:38854 Archived-At: Steinar Bang wrote: > Platform: Intel Pentium M, Ubuntu Dapper, > Gnome desktop (2.14.3-0ubuntu1) > emacs21 21.4a-3ubuntu2 > > I'm trying to use emacsclient, instead of gedit, as the default Gnome > text editor. > > Googling found me this howto: > http://ubuntuforums.org/showthread.php?t=299086 > > But this requires that there is a .desktop entry for the replacement > editor. On my system there is an emacs21.desktop. But using that > would fire up a new emacs for each file opened, and that's not what I > want. > > So what I wonder is: is it possible to create an emacsclient.desktop > entry? Or is desktop entry for emacsclient a meaningless concept? > > Basically: Is it possible to use emacsclient as the Gnome system > editor? Basically: yes. However with the current emacsclient you have to start emacs first. There has currently been a discussion on the emacs devel list where I have tried to argue that in Emacs 22 emacsclient should be able to automatically start emacs when needed. I think most people there would agree it is a good (but for many not very important) thing. However it does not seem that it will make it into Emacs 22. I have this working on MS Windows at the moment, but I am not sure the code is working on GNU/Linux. Testers are welcome.