[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TODO
From: |
Michael Albinus |
Subject: |
Re: TODO |
Date: |
Thu, 28 Feb 2008 17:20:26 +0100 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) |
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?
> Xavier
Best regards, Michael.
- Re: TODO, (continued)
- Re: TODO, Richard Stallman, 2008/02/27
- Re: TODO, Stefan Monnier, 2008/02/27
- Re: TODO, Richard Stallman, 2008/02/28
- Re: TODO [was Re: Looking for a new Emacs maintainer or team], V.Rao, 2008/02/28
- Re: TODO [was Re: Looking for a new Emacs maintainer or team], Richard Stallman, 2008/02/28
- Re: TODO [was Re: Looking for a new Emacs maintainer or team], Xavier Maillard, 2008/02/27
- Re: TODO,
Michael Albinus <=
- Re: TODO, Dan Nicolaescu, 2008/02/28
- Re: TODO, Stefan Monnier, 2008/02/28
- Re: TODO, Michael Albinus, 2008/02/28
- Re: TODO, Evans Winner, 2008/02/28
- Re: TODO, Dan Nicolaescu, 2008/02/28
- Re: TODO, Michael Albinus, 2008/02/29
- Re: TODO, Xavier Maillard, 2008/02/29