Emacs and dbus-send

2010-11-03 Thread nyc4bos
Hi, I was trying out Emacs and dbus-send and ran int a minor problem. I sent the following: dbus-send --session --print-reply --dest=org.gnu.emacs.TextEditor \ /org/gnu/emacs/TextEditor org.gnu.emacs.TextEditor It sucessfully created an emacs process. However, I got the message: Error

Re: Emacs and dbus-send

2010-11-03 Thread Michael Albinus
nyc4...@aol.com writes: I was trying out Emacs and dbus-send and ran int a minor problem. I sent the following: dbus-send --session --print-reply --dest=org.gnu.emacs.TextEditor \ /org/gnu/emacs/TextEditor org.gnu.emacs.TextEditor It sucessfully created an emacs process. However, I

Re: Emacs and DBUS

2010-08-27 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: This is also a D-Bus client, which connects to the *same* session bus as Emacs did due to $DBUS_SESSION_BUS_ADDRESS. Now you should see the signal sent by dbus-monitor in Emacs. OK, I started the session bus the right way this time, but I still didn't

Re: Emacs and DBUS

2010-08-27 Thread Ken Brown
On 8/27/2010 3:41 AM, Michael Albinus wrote: Ken Brownkbr...@cornell.edu writes: This is also a D-Bus client, which connects to the *same* session bus as Emacs did due to $DBUS_SESSION_BUS_ADDRESS. Now you should see the signal sent by dbus-monitor in Emacs. OK, I started the session bus

Re: Emacs and DBUS

2010-08-27 Thread Ken Brown
On 8/27/2010 10:24 AM, Ken Brown wrote: On 8/27/2010 3:41 AM, Michael Albinus wrote: Ken Brown writes: This is also a D-Bus client, which connects to the *same* session bus as Emacs did due to $DBUS_SESSION_BUS_ADDRESS. Now you should see the signal sent by dbus-monitor in Emacs. OK, I

Re: Emacs and DBUS

2010-08-27 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: I suspect we can't go any further with this until you return from your trip and start debugging. Yes, I'm sorry. Let's continue in September. Ken Best regards, Michael. -- Problem reports: http://cygwin.com/problems.html FAQ:

Re: Emacs and DBUS

2010-08-26 Thread Ken Brown
, starting in the emacs src directory. 1. With the system bus not running, I start Emacs via 'dbus-launch ./emacs.exe -Q' and load dbus.el. In the *scratch* buffer I evaluate some of the expressions that you suggested in your earlier email: (dbus-get-unique-name :session) :1.0 (defun my-dbus-signal

Re: Emacs and DBUS

2010-08-26 Thread Michael Albinus
testing, and here are the results, all with a build of emacs from the trunk, starting in the emacs src directory. Oops. 1. With the system bus not running, I start Emacs via 'dbus-launch ./emacs.exe -Q' and load dbus.el. In the *scratch* buffer I evaluate some of the expressions that you

Re: Emacs and DBUS

2010-08-26 Thread Ken Brown
. I've done some further testing, and here are the results, all with a build of emacs from the trunk, starting in the emacs src directory. Oops. 1. With the system bus not running, I start Emacs via 'dbus-launch ./emacs.exe -Q' and load dbus.el. In the *scratch* buffer I evaluate some

Re: Emacs and DBUS

2010-08-25 Thread Ken Brown
On 8/24/2010 11:28 PM, Michael Albinus wrote: Ken Brown writes: After installing that library, Emacs did start. How ever, it blocks when loading dbus.el. Don't you normally have to start a D-BUS session before loading dbus.el? Maybe one of the Cygwin people who uses D-BUS can tell us how

Re: Emacs and DBUS

2010-08-25 Thread Ken Brown
find it works there, maybe the problem is just a matter of backporting some patch to Emacs 23.2. Can you tell me how to test dbus in emacs? Or do you want me to send you the executable and let you test it? Ken -- Problem reports: http://cygwin.com/problems.html FAQ

Re: Emacs and DBUS

2010-08-25 Thread Ken Brown
On 8/25/2010 10:37 AM, Ken Brown wrote: On 8/25/2010 10:02 AM, Ken Brown wrote: On 8/24/2010 11:28 PM, Michael Albinus wrote: Ken Brown writes: After installing that library, Emacs did start. How ever, it blocks when loading dbus.el. Don't you normally have to start a D-BUS session

Re: Emacs and DBUS

2010-08-25 Thread Michael Albinus
D-Bus application, and you shall be notified in Emacs. Let's use dbus-monitor, started in a shell: # dbus-monitor --session # dbus-monitor --system If we find it works there, maybe the problem is just a matter of backporting some patch to Emacs 23.2. In Emacs' trunk, there are changes how

Re: Emacs and DBUS

2010-08-25 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: The blocking you observed when dbus.el is loaded doesn't occur with a build from the Emacs trunk (r101187). Correction: It occurs if and only if the system messagebus service is running. I'm confused: do you mean, the problem is happening when the system

Re: Emacs and DBUS

2010-08-24 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: Hi Ken, It's some years ago I have used Cygwin. But if you have uploaded the build already, I could check, whether I have problems running Emacs + D-Bus under Cygwin. Yes, it's uploaded. See http://cygwin.com/ml/cygwin-announce/2010-08/msg00020.html

Re: Emacs and DBUS

2010-08-24 Thread Ken Brown
On 8/24/2010 3:43 PM, Michael Albinus wrote: Ken Brown writes: Hi Ken, It's some years ago I have used Cygwin. But if you have uploaded the build already, I could check, whether I have problems running Emacs + D-Bus under Cygwin. Yes, it's uploaded. See

Re: Emacs and DBUS

2010-08-24 Thread René Berber
Ken Brown wrote: [snip] Don't you normally have to start a D-BUS session before loading dbus.el? Maybe one of the Cygwin people who uses D-BUS can tell us how to do that. libdbus starts dbus-daemon --session if its not already started (global or session) and if it can find it (in the PATH and

Re: Emacs and DBUS

2010-08-24 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: After installing that library, Emacs did start. How ever, it blocks when loading dbus.el. Don't you normally have to start a D-BUS session before loading dbus.el? Maybe one of the Cygwin people who uses D-BUS can tell us how to do that. I've started the

Re: Emacs and DBUS

2010-08-24 Thread Yaakov (Cygwin/X)
On Wed, 2010-08-25 at 05:28 +0200, Michael Albinus wrote: Ken Brown writes: Don't you normally have to start a D-BUS session before loading dbus.el? Maybe one of the Cygwin people who uses D-BUS can tell us how to do that. I've started the session bus via dbus-launch in advance, of

Re: Emacs and DBUS

2010-08-20 Thread Reini Urban
2010/8/14 Ken Brown kbr...@cornell.edu: On 8/12/2010 10:36 PM, nyc4...@aol.com wrote: Can the Cygwin Emacs maintainer compile an Emacs binary (emacs-X11, emacs-nox, etc) with D-BUS? It appears that the cygdbus-1-3.dll should be able to be available for Cygwin Emacs support. Yes, I've just

Re: Emacs and DBUS

2010-08-20 Thread Ken Brown
On 8/20/2010 2:14 PM, Reini Urban wrote: 2010/8/14 Ken Brownkbr...@cornell.edu: On 8/12/2010 10:36 PM, nyc4...@aol.com wrote: Can the Cygwin Emacs maintainer compile an Emacs binary (emacs-X11, emacs-nox, etc) with D-BUS? It appears that the cygdbus-1-3.dll should be able to be available for

Re: Emacs and DBUS

2010-08-18 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: Yes, I've just checked that it builds with D-Bus. I'll upload a test release in a few days. BTW, the configure script gives the following warning: D-Bus integration has been tested for GNU/Linux only. So I don't know if it will work. This message

Re: Emacs and DBUS

2010-08-18 Thread Ken Brown
On 8/18/2010 2:43 PM, Michael Albinus wrote: Ken Brown writes: Yes, I've just checked that it builds with D-Bus. I'll upload a test release in a few days. BTW, the configure script gives the following warning: D-Bus integration has been tested for GNU/Linux only. So I don't know if it

Re: Emacs and DBUS

2010-08-18 Thread Michael Albinus
Ken Brown kbr...@cornell.edu writes: Thanks, Michael. I don't use D-BUS myself, but I hope the OP will test it and report back. It's some years ago I have used Cygwin. But if you have uploaded the build already, I could check, whether I have problems running Emacs + D-Bus under Cygwin. Ken

Re: Emacs and DBUS

2010-08-18 Thread Ken Brown
On 8/18/2010 3:19 PM, Michael Albinus wrote: Ken Brownkbr...@cornell.edu writes: Thanks, Michael. I don't use D-BUS myself, but I hope the OP will test it and report back. It's some years ago I have used Cygwin. But if you have uploaded the build already, I could check, whether I have

Re: Emacs and DBUS

2010-08-14 Thread Ken Brown
On 8/12/2010 10:36 PM, nyc4...@aol.com wrote: Hi, Can the Cygwin Emacs maintainer compile an Emacs binary (emacs-X11, emacs-nox, etc) with D-BUS? It appears that the cygdbus-1-3.dll should be able to be available for Cygwin Emacs support. Thanks. Yes, I've just checked that it builds with

Emacs and DBUS

2010-08-12 Thread nyc4bos
Hi, Can the Cygwin Emacs maintainer compile an Emacs binary (emacs-X11, emacs-nox, etc) with D-BUS? It appears that the cygdbus-1-3.dll should be able to be available for Cygwin Emacs support. Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ: