all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Alternative D-Bus bindings
@ 2012-09-09 11:58 Michael Albinus
  2012-09-09 19:32 ` James Cloos
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2012-09-09 11:58 UTC (permalink / raw
  To: emacs-devel

Hi,

I'm planning to implement an alternative for dbusbindings.c [1]. The
major difference is the use of libgio instead of libdbus.

The reason is, that Emacs is already linked with libgio, when gconf or
gsettings is enabled (pretty much the default under GNU/Linux). libgio
opens an own connection to the D-Bus session bus in parallel to the
connection managed by libdbus. This runs into problems, if you need
information about the connection managed by libgio, as it is the case
for at-spi2 [2].

The implementation shall be backwards compatible, no Lisp interface
change shall be visible. During configuration time, it will be checked
whether libgio is available; if not libdbus will be used.

Comments?

[1] The alternative could be either a new gdbusbindings.c file, or
something controlled by configure flags inside dbusbindings.c. I haven't
checked yet, what is more appropriate.

[2] See also <http://thread.gmane.org/gmane.comp.freedesktop.dbus/14880>

Best regards, Michael.



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

* Re: Alternative D-Bus bindings
  2012-09-09 11:58 Alternative D-Bus bindings Michael Albinus
@ 2012-09-09 19:32 ` James Cloos
  2012-09-09 20:01   ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: James Cloos @ 2012-09-09 19:32 UTC (permalink / raw
  To: Michael Albinus; +Cc: emacs-devel

>>>>> "MA" == Michael Albinus <michael.albinus@gmx.de> writes:

MA> I'm planning to implement an alternative for dbusbindings.c [1].
MA> The major difference is the use of libgio instead of libdbus.

Please ensure that libgio isn't used unless the toolkit is gtk.

An athena build shouldn't have dependencies on glib.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



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

* Re: Alternative D-Bus bindings
  2012-09-09 19:32 ` James Cloos
@ 2012-09-09 20:01   ` Michael Albinus
  2012-09-09 23:09     ` Glenn Morris
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2012-09-09 20:01 UTC (permalink / raw
  To: James Cloos; +Cc: emacs-devel

James Cloos <cloos@jhcloos.com> writes:

> Please ensure that libgio isn't used unless the toolkit is gtk.
>
> An athena build shouldn't have dependencies on glib.

Should be possible.

> -JimC

Best regards, Michael.



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

* Re: Alternative D-Bus bindings
  2012-09-09 20:01   ` Michael Albinus
@ 2012-09-09 23:09     ` Glenn Morris
  2012-09-10 14:41       ` Jan Djärv
  0 siblings, 1 reply; 9+ messages in thread
From: Glenn Morris @ 2012-09-09 23:09 UTC (permalink / raw
  To: Michael Albinus; +Cc: James Cloos, emacs-devel

Michael Albinus wrote:

> James Cloos <cloos@jhcloos.com> writes:
>
>> Please ensure that libgio isn't used unless the toolkit is gtk.
>>
>> An athena build shouldn't have dependencies on glib.
>
> Should be possible.

All my Athena builds link to glib since 23.1. I couldn't care less.
At least rsvg and ImageMagick support bring it in (Debian testing).



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

* Re: Alternative D-Bus bindings
  2012-09-09 23:09     ` Glenn Morris
@ 2012-09-10 14:41       ` Jan Djärv
  2012-09-10 15:13         ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Djärv @ 2012-09-10 14:41 UTC (permalink / raw
  To: Glenn Morris; +Cc: Michael Albinus, James Cloos, emacs-devel


10 sep 2012 kl. 01:09 skrev Glenn Morris <rgm@gnu.org>:

> Michael Albinus wrote:
> 
>> James Cloos <cloos@jhcloos.com> writes:
>> 
>>> Please ensure that libgio isn't used unless the toolkit is gtk.
>>> 
>>> An athena build shouldn't have dependencies on glib.
>> 
>> Should be possible.
> 
> All my Athena builds link to glib since 23.1. I couldn't care less.
> At least rsvg and ImageMagick support bring it in (Debian testing).

So does GSettings.

	Jan D.




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

* Re: Alternative D-Bus bindings
  2012-09-10 14:41       ` Jan Djärv
@ 2012-09-10 15:13         ` Michael Albinus
  2012-09-10 19:44           ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2012-09-10 15:13 UTC (permalink / raw
  To: Jan Djärv; +Cc: James Cloos, emacs-devel

Jan Djärv <jan.h.d@swipnet.se> writes:

>>>> Please ensure that libgio isn't used unless the toolkit is gtk.
>>>> 
>>>> An athena build shouldn't have dependencies on glib.
>>> 
>>> Should be possible.
>> 
>> All my Athena builds link to glib since 23.1. I couldn't care less.
>> At least rsvg and ImageMagick support bring it in (Debian testing).
>
> So does GSettings.

Sure. And also GConf.

But it shouldn't hurt, to enable libgio for GDBus only if HAVE_GTK is "yes".
At least for the time being.

When Emacs supports threading, it might be a good idea to use libgio
anyway for D-Bus if installed, because libdbus is said to have problems
with threads.

> 	Jan D.

Best regards, Michael.



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

* Re: Alternative D-Bus bindings
  2012-09-10 15:13         ` Michael Albinus
@ 2012-09-10 19:44           ` Stefan Monnier
  2012-09-10 19:52             ` Michael Albinus
  0 siblings, 1 reply; 9+ messages in thread
From: Stefan Monnier @ 2012-09-10 19:44 UTC (permalink / raw
  To: Michael Albinus; +Cc: Jan Djärv, James Cloos, emacs-devel

> But it shouldn't hurt, to enable libgio for GDBus only if HAVE_GTK is "yes".
> At least for the time being.

I don't see a particular problem in requiring glib to be able to build
with D-Bus support.  The situation where someone would want to build an
Emacs that supports D-Bus but with a configuration which doesn't use
glib seems rather unlikely.


        Stefan



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

* Re: Alternative D-Bus bindings
  2012-09-10 19:44           ` Stefan Monnier
@ 2012-09-10 19:52             ` Michael Albinus
  2012-09-10 21:07               ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Michael Albinus @ 2012-09-10 19:52 UTC (permalink / raw
  To: Stefan Monnier; +Cc: Jan Djärv, James Cloos, emacs-devel

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

> I don't see a particular problem in requiring glib to be able to build
> with D-Bus support.  The situation where someone would want to build an
> Emacs that supports D-Bus but with a configuration which doesn't use
> glib seems rather unlikely.

I did understand James, that he doesn't need D-Bus, and he doesn't want
a glib dependency in his athena-based build because of D-Bus.

"with-dbus" is the default configure option in Emacs.

>         Stefan

Best regards, Michael.



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

* Re: Alternative D-Bus bindings
  2012-09-10 19:52             ` Michael Albinus
@ 2012-09-10 21:07               ` Stefan Monnier
  0 siblings, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2012-09-10 21:07 UTC (permalink / raw
  To: Michael Albinus; +Cc: Jan Djärv, James Cloos, emacs-devel

>> I don't see a particular problem in requiring glib to be able to build
>> with D-Bus support.  The situation where someone would want to build an
>> Emacs that supports D-Bus but with a configuration which doesn't use
>> glib seems rather unlikely.
> I did understand James, that he doesn't need D-Bus, and he doesn't want
> a glib dependency in his athena-based build because of D-Bus.
> "with-dbus" is the default configure option in Emacs.

If he doesn't want glib, then he'll have to explicitly disable dbus,
which I think is an acceptable price to pay.


        Stefan



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

end of thread, other threads:[~2012-09-10 21:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-09 11:58 Alternative D-Bus bindings Michael Albinus
2012-09-09 19:32 ` James Cloos
2012-09-09 20:01   ` Michael Albinus
2012-09-09 23:09     ` Glenn Morris
2012-09-10 14:41       ` Jan Djärv
2012-09-10 15:13         ` Michael Albinus
2012-09-10 19:44           ` Stefan Monnier
2012-09-10 19:52             ` Michael Albinus
2012-09-10 21:07               ` Stefan Monnier

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.