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: Fri, 18 Sep 2020 11:36:17 +0200 Message-ID: <87h7rva0ku.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> <878sdj84kn.fsf@gmx.de> <871rjbaq05.fsf@ccss.com> <874ko6979w.fsf@gmx.de> <87v9gm9x9i.fsf@ccss.com> <871rj9k78r.fsf@gmx.de> <87imclwow5.fsf@gmx.de> <87pn6t9rbq.fsf@ccss.com> <87y2lggzvd.fsf@gmx.de> <87h7rzadlo.fsf@ccss.com> <87k0wtrir2.fsf@gmx.de> <87een19x9n.fsf@ccss.com> <87a6xor25b.fsf@gmx.de> <87bli49rem.fsf@ccss.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36657"; 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 Fri Sep 18 11:38:06 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 1kJCqE-0009R2-78 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 11:38:06 +0200 Original-Received: from localhost ([::1]:47454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJCqD-0003B4-39 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 18 Sep 2020 05:38:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJCpC-00037t-8O for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 05:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:57573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJCpB-00069W-UA for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 05:37:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJCpB-00031p-RF for bug-gnu-emacs@gnu.org; Fri, 18 Sep 2020 05:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 18 Sep 2020 09:37:01 +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.160042178911591 (code B ref 43252); Fri, 18 Sep 2020 09:37:01 +0000 Original-Received: (at 43252) by debbugs.gnu.org; 18 Sep 2020 09:36:29 +0000 Original-Received: from localhost ([127.0.0.1]:40886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJCoe-00030t-Sw for submit@debbugs.gnu.org; Fri, 18 Sep 2020 05:36:29 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:53023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJCoc-00030f-KW for 43252@debbugs.gnu.org; Fri, 18 Sep 2020 05:36:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1600421779; bh=z/fYBX99G80FOfebMrJaRdGnyHDYdPKPW3+kQo6A+80=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=O8hsKAKhg2PoSG4G4m6zICZYnuIoDp96bfVsQuhbrH9WozypNMeu0SOYhaBMhNUmA 0tbFgP49ofziUpMMAtrF76Ykney30i2Dm30JVziY+JoLD0YCBzXl16dwW/aBC5Nq35 hy64dqEnpiKfcPr3j6+UxdpdYz4AcrB3PI72N//c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([178.20.93.248]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MJmGZ-1k40HT2xMP-00KAwe; Fri, 18 Sep 2020 11:36:18 +0200 In-Reply-To: <87bli49rem.fsf@ccss.com> (Hugh Daschbach's message of "Thu, 17 Sep 2020 11:42:09 -0700") X-Provags-ID: V03:K1:KlI4xa8mN0HeoYyouqZVkvKaBmXNDB1gVNhONIbdfkXiRV89p60 My5WdyuyZBDHuK+aJNEPPFYxKmFii5MPLDVV+3Kydcmh9a618M0/o2xGkAPl+hQH0uEP2I7 njpoOIhLFoBOXoJqgRGueiAv8Oo+FFEvaoydXrkwPxAchsM4FhJEXj63pn9sT38xe2V3606 f4R4PF/6NAgUeuoQYc/hA== X-UI-Out-Filterresults: notjunk:1;V03:K0:sAWzt6FyeDI=:S0/2AKt7OkrpNAZrI0mcz2 aumJAHilb7UqSQnBdf6DZpjruNP3NGF2gn/SdomcmISQEcPwzraMkIfwCb9e7OqFO9qxJtP3p wya9lf4+UCJQ6uoDG//9XcWc+KebYQucM2GgUdpxDlGhZFGjOS9BaDYvYIS1UP7KbUf64/uVW 3bCKUMwWUgoSSrO407jHoUp3qaQaHkJjoBEYUnpbmMXYUk/3EwkwXEMEX2Nn8ULDpCaGYYeBq FNYDVvGqFuNmMgTAF1SWE8DYK57CShooxMBQYKnS8Q3n8/2LsEj1Ht9nftiryIVPdtVq894Dm FjT5nUrhFR5tA3cFzIZe1L/7geB748b0z6d7vWmb5nXvUfqUa7N8NtVxMPSXMIxgQ0+FopYau 3ZaKPpQzkgSr4Nm8F2xqyPcU6TSgNaegHYjW06oH3qsYPuUAP0vKnKFDHfQzSlP1f9OeP1Zdd lsOzF3oNHK8eT74gZQwa2kQ6llsi9+X8ddWBhV9ubixLBXdvy3EDD1GvCOdIrw9uBMaSKufAi oS8X6t8zuCPg8zspst8hXFwLWKIbyZU1TJY7eKQ8om3Ykch3POUDZDB7lmOyvXnDur2XOoRNZ v3cFFnoed0s0Yuwa8LZkdHxATgcR1onsXGZxe1rUvGmsVBqzMIjtLd/4vmSt3in6+meD5xLQf hm6FuDr9+sIwLIoBgz2iaq6qFJ2rYUbLaH7oetnMKNnTTsiWmqydNw+tUzPd4fEq/YW5UgSY7 W81w3GuPMROI4EDuyS6jlkkHDj4WZZivm8dCnnLn/r2Z6jwJ6XKjeMKsMddeUab8OAAS5+x3 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:188279 Archived-At: Hugh Daschbach writes: Hi Hugh, >> Implementation is more complex than expected. Due to its nature, >> org.freedesktop.DBus.Monitoring.BecomeMonitor requires another >> (parallel) connection to the bus. This is not foreseen yet in >> dbusbind.c; >> will see how it could fly. >> >> What I could provide just now is an implementation which runs in >> *another* Emacs instance. This could be used for monitoring only, >> because it is another connection to the bus per definition. Are you >> interested to get such a partial implementation? > > I'm interested in whatever you want to implement. I see signature > verification useful for testing rather than an exposed feature. > > From what I can see from looking at dbus-monitor output the correct > property types are being exposed now. It seems to be working. > > So whatever we approach we take, the benefit is early warning of > future > regressions. You are a better judge of benefit of additional effort > than I. > > A second Emacs instance seems to offer the same asynchronous output > gathering issues that dbus-monitor poses. It does eliminates the > ad-hoc > parser. > > If you have a longer term goal, I'd suggest pursuing that rather than > something partial that you'll want to replace later. > > But I have no objection to a parallel instance to gather request > signatures. I don't know where we end up. I'm still poking around how to implement a second connection to the same bus. If it is not too expensive to implement I'd prefer this. > Which raises the question, should dbus-set-property function call fail > for a local property that isn't :readwrite, or should that only be > prevented by incoming messages? dbus-set-property doesn't know, whether a property is registered locally. I guess an error reply is reasonable, whether the property is registered locally, or not. > Do we require that dbus-register-property be used to update a :read > access property. dbus-set-property shall fail when the property has :read access. Yes, such a property can be changed only by dbus-register-property. But :read access is intended to tell the clients, that they shouldn't change the property; an error in dbus-set-property (returning nil, respectively) is appropriate. > Cheers, > Hugh Best regards, Michael.