delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/23/23:50:25

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-0.2 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: nyc4bos AT aol DOT com
Subject: Re: emacs-23.2-3 DBus hangs
Date: Sat, 23 Oct 2010 21:09:04 -0400
Lines: 52
Message-ID: <83ocakl7m7.fsf@aol.com>
References: <834ocd4jy2 DOT fsf AT aol DOT com> <4CC2F11B DOT 2070101 AT cornell DOT edu>
Mime-Version: 1.0
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Ken Brown <kbrown AT cornell DOT edu> writes:

> On 10/23/2010 12:22 AM, nyc4bos AT aol DOT com wrote:
>> Just doing a:
>>
>>     (require 'dbus)
>>
>> hangs Cygwin emacs-23.2-3
>>
>> I can only `C-g' and abort emacs.
>
> Works fine for me.  Do you have the system bus and session bus running
> before you start emacs?  If so, please say exactly how you're starting
> the session bus and how you're starting emacs.

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


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019