X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CC44457.1010901@cornell.edu> Date: Sun, 24 Oct 2010 10:36:07 -0400 From: Ken Brown User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: emacs-23.2-3 DBus hangs References: <834ocd4jy2 DOT fsf AT aol DOT com> <4CC2F11B DOT 2070101 AT cornell DOT edu> <83ocakl7m7 DOT fsf AT aol DOT com> <87eibg2cg5 DOT fsf AT gmx DOT de> In-Reply-To: <87eibg2cg5.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 10/24/2010 4:59 AM, Michael Albinus wrote: > nyc4bos AT aol DOT com writes: > >> OK, it looks like loading dbus.el is where it fails when following >> the instructions given in this URL: >> >> http://cygwin.com/ml/cygwin/2010-08/msg00892.html >> >> I guess this step is not necessary but emacs shouldn't hang. >> >> Here's the steps I followed: >> >> $ eval `dbus-launch --auto-syntax` >> $ echo $DBUS_SESSION_BUS_ADDRESS >> unix:path=/tmp/dbus-dlr0QTU52y,guid=2ed2e65c8040f348d71319f94cc36ca0 >> $ xterm& # This gives me a new xterm with "DBUS_SESSION_BUS_ADDRESS" >> set. >> >> In new xterm: >> >> $ dbus-monitor >> signal sender=org.freedesktop.DBus -> dest=:1.0 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired >> string ":1.0" >> method call sender=:1.0 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch >> string "type='method_call'" >> method call sender=:1.0 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch >> string "type='method_return'" >> method call sender=:1.0 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch >> string "type='error'" >> >> In first xterm: >> $ emacs& >> >> In that emacs: >> (dbus-get-unique-name :session) >> ":1.0" >> >> load-file /usr/share/emacs/23.2/lisp/net/dbus.el.gz >> >> Hangs emacs after the "done" message... > > Likely, you didn't start the system bus (the scenario is only about the > session bus). > > I've committed a patch to the Emacs-23 branch which ought to handle this > situation: > > > 2010-10-08 Michael Albinus > > * dbusbind.c (xd_get_dispatch_status): Return a Lisp_Object. > (xd_pending_messages): Catch xd_get_dispatch_status calls. > > I don't know, whether this has reached already in Cygwin's Emacs > package. However, if you are using D-Bus you shall ensure that both the > system and session buses are running. That patch has not yet been applied to the Cygwin build. I'm inclined to let it wait for Emacs 23.3, unless I need to issue a new release of Emacs for some other reason. The workaround (making sure that the system bus is running) is easy enough. 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