unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* D-Bus integration into Emacs
@ 2007-11-28 22:19 Michael Albinus
  2007-12-02 17:28 ` Michael Albinus
  0 siblings, 1 reply; 43+ messages in thread
From: Michael Albinus @ 2007-11-28 22:19 UTC (permalink / raw)
  To: emacs-devel

Hi,

I wrote some code to integrate D-Bus into Emacs. It's far from being
complete, but some basic functionality like synchronous method calls and
sending/receiving signals is running quite stable in my local
environment. At least it is sufficient to get an idea what it is and how
it works, I believe.

The implementation consists mainly of src/dbusbindings.c,
lisp/net/dbus.el and doc/misc/dbus.texi. All other modifications (in
src/Makefile.in, src/config.in, src/emacs.c, src/keyboard.c and
src/termhooks.h) are wrapped by the "#ifdef USE_DBUS" directive. This
macro is defined only if the Emacs configure script did run with
parameter "--with-dbus". By this, the D-Bus code is not seen by default,
which should avoid collateral damages until it has been proven stable.
I've developed and tested it under GNU/Linux; but D-Bus implementations
exist also for Win32 and MacOS.

An overview of D-Bus can be found at http://dbus.freedesktop.org. I've
summarized it also in a previous message
(http://lists.gnu.org/archive/html/emacs-devel/2007-09/msg00315.html).
doc/misc/dbus.texi contains several examples showing what is possible
already.

Are there any objections to install it in the trunk?

Best regards, Michael.

^ permalink raw reply	[flat|nested] 43+ messages in thread
* Re: D-Bus integration into Emacs
@ 2007-12-05  8:37 Michael Albinus
  2007-12-05 14:55 ` Magnus Henoch
  0 siblings, 1 reply; 43+ messages in thread
From: Michael Albinus @ 2007-12-05  8:37 UTC (permalink / raw)
  To: mange; +Cc: emacs-devel

[message resent; Cc was lost]

Magnus Henoch <mange@freemail.hu> writes:

>> libdbus-1 is linked statically. As long as nobody loads dbus.el on that
>> other computer, it doesn't harm. And even if she does, there will be a
>> dbus-error, like any other error. No crash or so.
>>
>> I haven't tested it, but at least that's what I wrote.
>
> I get the opposite result.  Using an emacs compiled with D-Bus, when the
> environment variable DBUS_SESSION_BUS_ADDRESS is unset, "emacs -Q" will
> give an emacs that just beeps and doesn't react to input.  (At least on
> a tty; I'm unable to test with X right now)

Have you tried the patch I've checked in yesterday evening? It should
have solved this issue (I have seen it as well).

There is another weakness left: if you load dbus.el when D-Bus isn't
reachable (unsetting DBUS_SESSION_BUS_ADDRESS, as you have done),
emacs is blocked again. I will work on this today.

> Magnus

Best regards, Michael.

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

end of thread, other threads:[~2007-12-06 10:01 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-28 22:19 D-Bus integration into Emacs Michael Albinus
2007-12-02 17:28 ` Michael Albinus
2007-12-02 20:45   ` Eli Zaretskii
2007-12-02 21:47     ` Jason Rumney
2007-12-03  8:37       ` Michael Albinus
2007-12-02 22:40   ` Christian Faulhammer
2007-12-03  2:32   ` Nick Roberts
2007-12-03  7:04     ` Christian Faulhammer
2007-12-03  7:36       ` Nick Roberts
2007-12-03  8:48         ` Christian Faulhammer
2007-12-03  8:59           ` Nick Roberts
2007-12-03 22:04           ` Andreas Schwab
2007-12-04  6:48             ` Christian Faulhammer
2007-12-04 16:55       ` Richard Stallman
2007-12-04 18:18         ` Ulrich Mueller
2007-12-04 20:17           ` Michael Albinus
2007-12-04 20:48             ` Ulrich Mueller
2007-12-04 21:03               ` Michael Albinus
2007-12-04 21:56             ` Magnus Henoch
2007-12-05  6:05           ` Richard Stallman
2007-12-03  8:51     ` Michael Albinus
2007-12-03 18:42       ` Richard Stallman
2007-12-03 21:11         ` Michael Albinus
2007-12-03  3:17   ` Magnus Henoch
2007-12-03  7:12     ` Jan Djärv
2007-12-03  9:37       ` Andreas Schwab
2007-12-04  7:36         ` Jan Djärv
2007-12-04 10:25           ` Andreas Schwab
2007-12-04 11:30             ` Jan Djärv
2007-12-05 22:51               ` Andreas Schwab
2007-12-06  7:05                 ` Jan Djärv
2007-12-06  8:02                   ` Glenn Morris
2007-12-06  8:08                   ` Thien-Thi Nguyen
2007-12-06 10:01                     ` Jan Djärv
2007-12-05  2:56           ` Richard Stallman
2007-12-03 21:41       ` Michael Albinus
2007-12-03 22:05         ` Magnus Henoch
2007-12-04  7:35         ` Jan Djärv
2007-12-03 23:43   ` Johan Bockgård
2007-12-04 21:42     ` Michael Albinus
2007-12-05 10:37       ` Johan Bockgård
  -- strict thread matches above, loose matches on Subject: below --
2007-12-05  8:37 Michael Albinus
2007-12-05 14:55 ` Magnus Henoch

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).