[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Dan Nicolaescu
Subject: Re: TODO
Date: Thu, 28 Feb 2008 09:08:57 -0800

Michael Albinus <address@hidden> writes:

  > Xavier Maillard <address@hidden> writes:
  > >    Please let me know if anyone is already working on one of these tasks.
  > >
  > > I can't answer your question but this entry is really
  > > interesting. So if you need to "orient" your choice, I'd vote for
  > > this :)
  > >
  > >    ** Make "emacs --daemon" start emacs without showing any frame.
  > >    Use emacsclient later to open frames.
  > >
  > > This idea would be excellent to have. I am using a hack to mimic
  > > such behaviour based on GNU screen (I have a GNU Emacs launched
  > > through a screen session that acts as a server).
  > This could be implemented easily by DBus, because it supports starting
  > services on request. To give an impression how it could work (hacked
  > on my Ubuntu machine, paths needed to be adapted):
  > - Place a file daemon.el into the Emacs load path, containing:
  > (require 'dbus)
  > (dbus-register-method
  >  :session "org.gnu.Emacs" "/org/gnu/Emacs" "org.gnu.Emacs"
  >  "Daemon" 'recursive-edit)
  > - Create a DBus service file "emacs.service" (in my case located at
  >   /usr/share/dbus-1/services), containing:
  > [D-BUS Service]
  > Name=org.gnu.Emacs
  > Exec=/usr/local/src/emacs/src/emacs -l daemon
  > - Emulate the DBus message, emacsclient could send:
  > # dbus-send --session --print-reply --dest="org.gnu.Emacs" \
  >     "/org/gnu/Emacs" "org.gnu.Emacs.Daemon"
  > That is of course *very* rough. And going into this direction, it
  > would require to enhance emacsclient and server.el understanding DBus
  > messages (when available).
  > What do people think?

There's some misunderstanding here.  What's missing here is a way to
start emacs and not create any frame, just have it run as a daemon (and
do not quit when the user logs out for example).  Then create frames
connected with that running emacs process.  The method of connecting to
the running emacs:  dbus or emacsclient is not important.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]