unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Run 23 in the background in GNOME?
@ 2008-09-01 13:45 Marc Schwartz
  2008-09-01 14:23 ` Dan Nicolaescu
  2008-09-01 18:28 ` Stefan Monnier
  0 siblings, 2 replies; 6+ messages in thread
From: Marc Schwartz @ 2008-09-01 13:45 UTC (permalink / raw)
  To: emacs-devel


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.

Marc Schwartz





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run 23 in the background in GNOME?
  2008-09-01 13:45 Run 23 in the background in GNOME? Marc Schwartz
@ 2008-09-01 14:23 ` Dan Nicolaescu
  2008-09-01 16:39   ` Marc Schwartz
  2008-09-01 18:28 ` Stefan Monnier
  1 sibling, 1 reply; 6+ messages in thread
From: Dan Nicolaescu @ 2008-09-01 14:23 UTC (permalink / raw)
  To: Marc Schwartz; +Cc: emacs-devel

Marc Schwartz <marc_schwartz@comcast.net> 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




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run 23 in the background in GNOME?
  2008-09-01 14:23 ` Dan Nicolaescu
@ 2008-09-01 16:39   ` Marc Schwartz
  0 siblings, 0 replies; 6+ messages in thread
From: Marc Schwartz @ 2008-09-01 16:39 UTC (permalink / raw)
  To: emacs-devel

Dan Nicolaescu <dann@ics.uci.edu> writes:

> Marc Schwartz <marc_schwartz@comcast.net> 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





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run 23 in the background in GNOME?
  2008-09-01 13:45 Run 23 in the background in GNOME? Marc Schwartz
  2008-09-01 14:23 ` Dan Nicolaescu
@ 2008-09-01 18:28 ` Stefan Monnier
  2008-09-01 20:46   ` Sven Joachim
  1 sibling, 1 reply; 6+ messages in thread
From: Stefan Monnier @ 2008-09-01 18:28 UTC (permalink / raw)
  To: Marc Schwartz; +Cc: emacs-devel

> 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

Try (server-running-p).


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run 23 in the background in GNOME?
  2008-09-01 18:28 ` Stefan Monnier
@ 2008-09-01 20:46   ` Sven Joachim
  2008-09-02  2:45     ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Sven Joachim @ 2008-09-01 20:46 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Marc Schwartz, emacs-devel

On 2008-09-01 20:28 +0200, Stefan Monnier wrote:

> Try (server-running-p).

BTW, why is this function interactive?  It does not give any feedback
when invoked with M-x, nor does it seem a particularly useful command.

Sven




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Run 23 in the background in GNOME?
  2008-09-01 20:46   ` Sven Joachim
@ 2008-09-02  2:45     ` Stefan Monnier
  0 siblings, 0 replies; 6+ messages in thread
From: Stefan Monnier @ 2008-09-02  2:45 UTC (permalink / raw)
  To: Sven Joachim; +Cc: Marc Schwartz, emacs-devel

>> Try (server-running-p).

> BTW, why is this function interactive?  It does not give any feedback
> when invoked with M-x, nor does it seem a particularly useful command.

Probably a left over from when I was testing it.


        Stefan




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-09-02  2:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-01 13:45 Run 23 in the background in GNOME? Marc Schwartz
2008-09-01 14:23 ` Dan Nicolaescu
2008-09-01 16:39   ` Marc Schwartz
2008-09-01 18:28 ` Stefan Monnier
2008-09-01 20:46   ` Sven Joachim
2008-09-02  2:45     ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).