From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Julien Danjou Newsgroups: gmane.emacs.bugs Subject: bug#9581: 24.0.50; dbus-unregister-object fails if service is nil Date: Sun, 25 Sep 2011 13:38:21 +0200 Message-ID: <87aa9setsi.fsf@keller.adm.naquadah.org> References: <87pqisi3lu.fsf@keller.adm.naquadah.org> <87ehz7e0ck.fsf@gmx.de> <871uv7i6gb.fsf@keller.adm.naquadah.org> <87bouab1mi.fsf@gmx.de> <87wrcydnuq.fsf@keller.adm.naquadah.org> <877h4yc8gm.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1316950775 13272 80.91.229.12 (25 Sep 2011 11:39:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 25 Sep 2011 11:39:35 +0000 (UTC) Cc: 9581@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 25 13:39:30 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R7n3R-00060R-Ud for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Sep 2011 13:39:30 +0200 Original-Received: from localhost ([::1]:38789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7n3R-00069x-Hb for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Sep 2011 07:39:29 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60769) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7n3P-00069r-25 for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2011 07:39:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7n3N-0003ag-NK for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2011 07:39:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34364) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7n3N-0003ac-KN for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2011 07:39:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R7n3y-0006jK-Eu for bug-gnu-emacs@gnu.org; Sun, 25 Sep 2011 07:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Julien Danjou Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 25 Sep 2011 11:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9581 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9581-submit@debbugs.gnu.org id=B9581.131695074525795 (code B ref 9581); Sun, 25 Sep 2011 11:40:02 +0000 Original-Received: (at 9581) by debbugs.gnu.org; 25 Sep 2011 11:39:05 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R7n32-0006i0-Rn for submit@debbugs.gnu.org; Sun, 25 Sep 2011 07:39:05 -0400 Original-Received: from prometheus.naquadah.org ([212.85.154.174] helo=mx1.naquadah.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R7n2z-0006hZ-24 for 9581@debbugs.gnu.org; Sun, 25 Sep 2011 07:39:02 -0400 Original-Received: from keller.adm.naquadah.org (AMontsouris-651-1-106-83.w83-202.abo.wanadoo.fr [83.202.161.83]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mx1.naquadah.org (Postfix) with ESMTPSA id 610985C0F6; Sun, 25 Sep 2011 13:38:22 +0200 (CEST) In-Reply-To: <877h4yc8gm.fsf@gmx.de> (Michael Albinus's message of "Sat, 24 Sep 2011 16:37:29 +0200") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sun, 25 Sep 2011 07:40:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51812 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Sat, Sep 24 2011, Michael Albinus wrote: >> The patch is not enough. It fixes the precise case I reported, but this >> fails now: >> >> (setq db >> (dbus-register-signal :session "some.service" >> "/org/gtk/Private/RemoteVolumeMonitor" >> "org.gtk.Private.RemoteVolumeMonitor" "Volum= eAdded" >> 'identity)) >> (dbus-unregister-object db) > > I've played exactly this example (replacing "some.service" by > "org.gtk.Private.GduVolumeMonitor" in order to have an existing > service). No problem. Indeed. It works fine with org.gtk.Private.GduVolumeMonitor as service, but with "some.service" it fails. Why? >> Debugger entered--Lisp error: (dbus-error "Match rule has a key with no = subsequent '=3D' character") >> dbus-call-method(:session "org.freedesktop.DBus" "/org/freedesktop/DBu= s" "org.freedesktop.DBus" "RemoveMatch" "Z") > > Where does the "Z" comes from? There will never be such a rule, added by > AddMatch. It's not a Z. One of our MUA altered this. On the first try it's " ^H\330" On the second try it's "Z^B" On the third try it's "\300#\264" =E2=80=A6 (I register then unregister to make a try) > Did you compile also dbusbind.c before testing? Oh yes I'm sure of that. :) > Could you apply (dbus-list-hash-table) before calling > `dbus-unregister-object', and show the result? Yeah. I start emacs-snapshot, then register then call `dbus-list-hash-table', it messages: (((:session "org.freedesktop.Notifications" "ActionInvoked") (":1.129" "org.freedesktop.Notifications" "/org/freedesktop/Notifications" notifications-on-action-signal "type=3D'signal',interface=3D'org.freedesktop.Notifications',member=3D'A= ctionInvoked',sender=3D':1.129',path=3D'/org/freedesktop/Notifications'")) ((:session "org.freedesktop.Notifications" "NotificationClosed") (":1.129" "org.freedesktop.Notifications" "/org/freedesktop/Notifications" notifications-on-closed-signal "type=3D'signal',interface=3D'org.freedesktop.Notifications',member=3D'N= otificationClosed',sender=3D':1.129',path=3D'/org/freedesktop/Notifications= '")) ((:session "org.gtk.Private.RemoteVolumeMonitor" "VolumeAdded") ("" "some.service" "/org/gtk/Private/RemoteVolumeMonitor" identity "=C2=82=02=01"))) In case one of our MUA will change the last string on the last line it shows: "^A\202^F^B^D^A" Then I call unregister it yells: Debugger entered--Lisp error: (dbus-error "Unable to append argument" "\202= =02=01") dbus-call-method(:session "org.freedesktop.DBus" "/org/freedesktop/DBus" = "org.freedesktop.DBus" "RemoveMatch" "\202=02=01") Where the last string is obviously the same as I talked about above. :) =2D-=20 Julien Danjou --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJOfxKtAAoJEGEbqVCLeKXCsbIP/R80+qoxVSCAi+6eoLaIIBpn 4vEcTjdOQ8/Ddqc8RY1P9IxUdA2lPReqKb4ijQBgKbaeZnVf7vZw1YXkXB2KYEjO aigBmB6K1olzFB3ksLX798s24q9JErB1MyFc9JWVhDk212T9hZSYNhdoNs2alo3Y G6pyzocx+/VUGGoFBFE42xdfE60vYn7JSfD3diuuvww2l+tFYuejcof4rGOZimQE ZumV1bm1M4xrQx5E1uQ/5wTELSMtn8XWBWzMoNHHvej8IvjAzRqHUJ6esZHVtJ9k pIU/2lC8e8j65gUq35EjBhINfB3qJYt+678bjO8Sa4kuBNXhdegzGiOsqBADHfdh bciZ8A5zCJK+SpvvSem00PwHX8qUdpc85FryY1uN5GXYtcVnENZUIZsKWQAapoZ/ YV41WX5UJosMMZ4WtLhiCC7Nc/ouMetgBW/fEtSaaEUor/BOWV36qMkf5dWbo5fw jGWcKWGZh7SCP55gK4zAswcFwLpKmdhPWrxdPLjGAD9cNj0baL2CqFt/5nDZMSCa eB/33JWiIAP48CVMCh+RLdeujPPFVx1gHFq9JMvnvHU31DBlUUC5GZ64PQgcSEFR b0B+21r5VPJNzFAnj9k9ceEBS6wF0CfjZ48hXlRfnBMGNqCRaimggcQNtIH0Szyr 3iBV9lj/Z5XrykAXHLV3 =4o61 -----END PGP SIGNATURE----- --=-=-=--