X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.1 required=5.0 tests=AWL,BAYES_40,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4C76C254.4040802@cornell.edu> Date: Thu, 26 Aug 2010 15:36:52 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Emacs and DBUS References: <847hjvdyr9 DOT fsf AT aol DOT com> <4C667099 DOT 2020103 AT cornell DOT edu> <87mxsj69st DOT fsf AT gmx DOT de> <4C6C2D11 DOT 8020003 AT cornell DOT edu> <87d3tf685q DOT fsf AT gmx DOT de> <4C6C4BC8 DOT 9010400 AT cornell DOT edu> <87lj7vokyt DOT fsf AT gmx DOT de> <4C74648F DOT 2030203 AT cornell DOT edu> <87d3t7nzez DOT fsf AT gmx DOT de> <4C75226F DOT 9030005 AT cornell DOT edu> <4C752AAB DOT 9000304 AT cornell DOT edu> <4C752F4F DOT 60203 AT cornell DOT edu> <8762yyovon DOT fsf AT gmx DOT de> In-Reply-To: <8762yyovon.fsf@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 8/26/2010 12:16 AM, Michael Albinus wrote: > Ken Brown 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 bus > is running, or when it is *not* running? I suspect the latter case. I really meant it the way I said it: The problem occurs if the system bus *is* running. 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. 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-handler (&rest args) (message "Signal from bus %s received: %s" (dbus-event-bus-name last-input-event) args)) my-dbus-signal-handler (dbus-register-signal :session dbus-service-dbus dbus-path-dbus dbus-interface-dbus "NameOwnerChanged" 'my-dbus-signal-handler) ((:session "org.freedesktop.DBus" "NameOwnerChanged") ("org.freedesktop.DBus" "/org/freedesktop/DBus" my-dbus-signal-handler)) Now I try 'dbus-monitor --session' in the xterm window from which I started emacs. This produces output in the xterm window, but I don't see anything in Emacs. Back to *scratch*: (dbus-get-unique-name :system) This throws me into the lisp debugger with the error (dbus-error "Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused"). I guess this is to be expected, since the system bus is not running. I now start the system bus via 'net start messagebus' in a shell, and I try again: (dbus-get-unique-name :system) ":1.0" Is this to be expected, that I get the same name for :system that I got for :session? 2. With the system bus running, I start Emacs as above and load dbus.el. The cursor stops blinking, and Emacs becomes unresponsive. I can type C-g and hear a bell, and I can type C-x C-c to exit, but I can't get a response to any other key presses. I'm willing to try anything else you suggest. Otherwise, I hope you're able to debug this when you return from your travels. The unstripped emacs-X11.exe binary (Emacs 23.2) is at http://www.math.cornell.edu/~kbrown/emacs-X11.exe.bz2 and the binary for my build from the trunk is at http://www.math.cornell.edu/~kbrown/emacs.exe.bz2 Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple