From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#43252: 27.1; DBus properties lack type hints or overrides Date: Wed, 09 Sep 2020 15:25:44 +0200 Message-ID: <878sdj84kn.fsf@gmx.de> References: <87v9gqquct.fsf@ccss.com> <87imcqdo38.fsf@gmx.de> <87sgbtqylc.fsf@ccss.com> <87sgbtcvqs.fsf@gmx.de> <87pn6xqtsz.fsf@ccss.com> <87363sl4hs.fsf@gmx.de> <877dt3bnfl.fsf@ccss.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21774"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 43252@debbugs.gnu.org To: Hugh Daschbach Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 09 15:26:47 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kG07a-0005Ze-RI for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Sep 2020 15:26:46 +0200 Original-Received: from localhost ([::1]:57196 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kG07Z-0006B3-2N for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Sep 2020 09:26:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33326) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kG06t-000686-Ff for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2020 09:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46364) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kG06t-0004y2-61 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2020 09:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kG06t-0001Jl-2a for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2020 09:26:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Sep 2020 13:26:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43252 X-GNU-PR-Package: emacs Original-Received: via spool by 43252-submit@debbugs.gnu.org id=B43252.15996579555024 (code B ref 43252); Wed, 09 Sep 2020 13:26:03 +0000 Original-Received: (at 43252) by debbugs.gnu.org; 9 Sep 2020 13:25:55 +0000 Original-Received: from localhost ([127.0.0.1]:57905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kG06l-0001Iy-A1 for submit@debbugs.gnu.org; Wed, 09 Sep 2020 09:25:55 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kG06j-0001Ij-2n for 43252@debbugs.gnu.org; Wed, 09 Sep 2020 09:25:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1599657945; bh=kA7ay0NiYER+ku4POrSZozXX6ufLbTEM0AtSX34Ci3s=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=cyQ6y0SFE/WgZFoFz7PFYOnCHdKJ0Vm2yFOaZNcX4zEQXoMfXzNturrAswh5nyl3t DCrtYdMqtdk8dwBneX7+LguqBDn7IeaLahJaCeyzE71gONt/9bKyYM6UPhNdCidML6 NAcv9Z6TLkEzi5BrrQTlO2d0tCurEOregSeLK8QE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.125.194]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MaJ7v-1k47Se1qFB-00WF2D; Wed, 09 Sep 2020 15:25:45 +0200 In-Reply-To: <877dt3bnfl.fsf@ccss.com> (Hugh Daschbach's message of "Tue, 08 Sep 2020 21:10:06 -0700") X-Provags-ID: V03:K1:s4MKEVu1sXNvGm2PyAa1nWOMLQlq8fFJw9jkCKDiEgUf22q/Lh5 VDDtRQc77Ui9iE3rP9wtTVaxWwtNKxOwvDlIdu8xSl/GIpwtJFzZPxzxQrcQUevF4rqLrv3 0qC1irzv+6RjFvcDCq1Bht6fdUGGPdMEma92L9TAn+jTwswuSfm0d7ucprHBEnIvPfQ5xRj qRQDCVh/QmMpc1fHq7TZA== X-UI-Out-Filterresults: notjunk:1;V03:K0:HXS8amptZGE=:sNtQJjRcduK1HCpkfaQ01Y EpmRTkiyAUZeKyQfo8uCYH519OOk37kU3uBMrl64/59u9LmCGKgKMXUhKc5c8Q9qJllVuvs2H 3ANHwDDmIYSgIJIaMGtcm75PpzpZuqPo3+xQ8WYtMCKubnQRQaiqYIdL1hfaknCORqVBnWARB fzFE1RoXA0APs6012f2irjrf1HJRQbSGoO4exBblSqyqsdhDj5Qp6ZIAqytbl+BbMTOz+746A EmUgeFUQnSJwgviBStWBy1Vcxb7q3Fe7CB0qAHSods3Ix4C3XitZuEg2HAmS0AaaQ9DfhHOvK 1txJdMUsRurHKCewpgik9yDISADaWVide7cv3Mp60GpPJ49Iwa+WXPAjgrFOapbUc4FpstT5H /ltl+KXJWlmdtBelDZZWCCvA3CgbuC5fY+Ft5GkGeE1egGItIToaQ7fhFOb0EN43/JdAidv/m ddkDtT1vCnme2QMTfMmnvsVK/89BFnGGJnhLAa23n2P/GrXTTED4gLKuQde1NQxaJerd7og7d O3qmIjMmsB7yVikaUGgmVPT/PMeU4qyvRGz0QWcrJBAFug7g8L6G2GT3s46XhxXx/8O21u7be xzuKoifq+/+E9UDPX7ugnB/qfTjEQHOz50ErwO8onqfi5+bO7f1TA2Aqw4O28cinviAzbTUjC hU/ppaxFHKomci6usPYYlOtNCCUejQ6fZliYz6ntB2FneTG+MNtuPtxbyXU6eRdu5GsHa+0YD VDX/tkY9TD0rynbNkIJnAkCV3RJlUCB1CW4yoVJYXO/++qcz7XENI1OObthkhJvNOWJK31zN X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187652 Archived-At: Hugh Daschbach writes: Hi Hugh, > The attached script generates two boolean properties, then issues a > GetManagedObjects method call. The two properties are not returned, > though they are in the registered objects table. Thanks for the heads up. There was still a small thinko in dbus-managed-objects-handler which I haven't noticed, because in my tests I have registered both methods and properties in parallel. I've pushed a fix to master, including extension of dbus-tests.el (which shall prevent this problem to reappear silently). > The script also drops an elisp =E2=80=98dbus-get-all-managed-objects=E2= =80=99 request > in > the *scratch* buffer. If I execute that, I get a similar failure to > #43251. That may not be surprising. Sure. I haven't worked on this yet. > I=E2=80=99m working an a more comprehensive test that registers the varie= ty of > types I need to support. I=E2=80=99ll post that when I have something wo= rth > looking at. I=E2=80=99d like to present that in a form compatible with > dbus-test.el rather than throw more one off scripts at you. So give > me > a bit. That would be great! I'll happily add your tests to dbus-tests.el. However, this would be a contribution to Emacs. For contributions exceeding ~15 lines, every contributor shall sign the legal papers from the FSF. Would you be willing to do? > I think the mechanism you implemented works well for simple types. Is > there a mechanism to specify the signature for an empty compound type? > I need arrays and dictionaries of various types. Until now, the implementation allows only basic D-Bus types for properties. Nobody has asked for more so far :-) I could extend this for complex types. Since this will require internal changes of data structures, it might take some days. An empty array could be specified by the element's signature, like (:array :signature "{sv}"). See the D-Bus manual via (info "(dbus) Type Conversion") > For something like a byte array, I expect I=E2=80=99ll need to interleave= the > :byte type between each value in the array. Correct? Yes. > Thanks, > Hugh Best regards, Michael.