From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marc Schwartz Newsgroups: gmane.emacs.devel Subject: Re: Run 23 in the background in GNOME? Date: Mon, 01 Sep 2008 11:39:11 -0500 Message-ID: References: <200809011423.m81ENIDN000018@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220287783 27540 80.91.229.12 (1 Sep 2008 16:49:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 16:49:43 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 01 18:50:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KaCbs-0001HB-3H for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 18:50:36 +0200 Original-Received: from localhost ([127.0.0.1]:60765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaCat-00078O-3o for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 12:49:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaCR7-00019J-Lm for emacs-devel@gnu.org; Mon, 01 Sep 2008 12:39:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaCR5-00018W-GC for emacs-devel@gnu.org; Mon, 01 Sep 2008 12:39:28 -0400 Original-Received: from [199.232.76.173] (port=54451 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaCR5-00018O-7k for emacs-devel@gnu.org; Mon, 01 Sep 2008 12:39:27 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:60066 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 1KaCR2-0005pz-So for emacs-devel@gnu.org; Mon, 01 Sep 2008 12:39:26 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KaCQw-00080w-Vm for emacs-devel@gnu.org; Mon, 01 Sep 2008 16:39:18 +0000 Original-Received: from c-75-73-100-84.hsd1.mn.comcast.net ([75.73.100.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2008 16:39:18 +0000 Original-Received: from marc_schwartz by c-75-73-100-84.hsd1.mn.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 01 Sep 2008 16:39:18 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 53 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-75-73-100-84.hsd1.mn.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:jNHqPETtq9xo9AJQ1rkYvtsrhT0= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103373 Archived-At: Dan Nicolaescu writes: > Marc Schwartz writes: > > > Hi all, > > > > Been running 23 from CVS for some time. First, great work to all the > > devs! > > > > This weekend, I decided to alter my modus operandi, such that Emacs > > would be loaded at my login to GNOME and then enable me to run > > emacsclient to speed up the loading and editing of subsequent > > files. BTW, this is on Fedora 9. > > > > Based upon entries in the Wiki and others that I found via Google, I > > enable the server in ~/.emacs and have set my default editor in .bashrc > > to a modification/simplification of the emacs.bash script for 23, that I > > put into ~/bin/emacs23, which is run at login. > > > > This is working great, with one exception. When I run Emacs at login, I > > use the --iconic argument, so that the Emacs window is not displayed on > > the desktop. There are times however, when I accidentally click on the > > Emacs icon on the dock (Avant-Window-Navigator), bringing up the window > > and then subsequently close it, losing the advantage of the > > server/emacsclient combination. Yeah, I know....stop doing that... :-) > > > > I have tried various incantations of running Emacs in the background > > (using &), both as part of a startup session in the GUI and from bash, > > without success. In checking for the presence of /tmp/emacs${UID}/server > > or ${HOME}/.emacs_server in the emacs23 script, I cannot seem to get it > > to stick reliably, while keeping Emacs in the background, so that it > > does not show up on the desktop at all, even iconized. I have also > > attempted to use the window settings in Compiz-Fusion to have the > > initial iconized Emacs session skip the taskbar, as an alternative, > > without success however. > > > > Anyone have any ideas/suggestions to get Emacs to run at login, while > > not showing up on the desktop or the taskbar, so that it is effectively > > invisible as a user, thus enabling me to consistently use emacsclient > > for all subsequent operations? > > > > Thanks in advance. > > You can do this using "emacs --daemon" after applying the patch here: > http://permalink.gmane.org/gmane.emacs.devel/103368 Wonderful. Thanks Dan! I had in the back of my mind a 'service-like' approach and this fits the bill. Good to see that it appears that it will go into the trunk for 23.1 as a standard feature. Cheers, Marc