From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: Run 23 in the background in GNOME? Date: Mon, 01 Sep 2008 07:23:18 -0700 Message-ID: <200809011423.m81ENIDN000018@sallyv1.ics.uci.edu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220279247 29569 80.91.229.12 (1 Sep 2008 14:27:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 1 Sep 2008 14:27:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Marc Schwartz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 01 16:28:21 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 1KaAO2-0000ry-Sx for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 16:28:11 +0200 Original-Received: from localhost ([127.0.0.1]:42905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaAN3-0007s3-Pv for ged-emacs-devel@m.gmane.org; Mon, 01 Sep 2008 10:27:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaAM3-0007Zc-OU for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:26:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaAM3-0007ZL-Dd for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:26:07 -0400 Original-Received: from [199.232.76.173] (port=58458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaAM3-0007ZH-2R for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:26:07 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:33664) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KaAM3-00055I-35 for emacs-devel@gnu.org; Mon, 01 Sep 2008 10:26:07 -0400 X-ICS-MailScanner-Watermark: 1220883802.23081@dmmKZRuE6vPX65Is18/2kA Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m81ENIDN000018; Mon, 1 Sep 2008 07:23:19 -0700 (PDT) In-Reply-To: (Marc Schwartz's message of "Mon, 01 Sep 2008 08:45:47 -0500") Original-Lines: 43 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:103371 Archived-At: 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