From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Llu=C3=ADs?= Newsgroups: gmane.emacs.devel Subject: Re: [dbus] type errors Date: Wed, 05 Dec 2012 12:55:18 +0100 Message-ID: <87fw3kww61.fsf@fimbulvetr.bsc.es> References: <87pq2rkoex.fsf@fimbulvetr.bsc.es> <87pq2rhstu.fsf@gmx.de> <87vcciygvm.fsf@fimbulvetr.bsc.es> <8738zm12qw.fsf@gmx.de> <87txs1wl57.fsf@fimbulvetr.bsc.es> <87r4n5ufjd.fsf@gmx.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354708533 29965 80.91.229.3 (5 Dec 2012 11:55:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 11:55:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 05 12:55:45 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TgDZp-0000xJ-0k for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2012 12:55:45 +0100 Original-Received: from localhost ([::1]:42339 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgDZd-0006og-3R for ged-emacs-devel@m.gmane.org; Wed, 05 Dec 2012 06:55:33 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TgDZY-0006oa-UX for emacs-devel@gnu.org; Wed, 05 Dec 2012 06:55:31 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TgDZR-0007XQ-PD for emacs-devel@gnu.org; Wed, 05 Dec 2012 06:55:28 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:49704) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1TgDZR-0007XG-Fl for emacs-devel@gnu.org; Wed, 05 Dec 2012 06:55:21 -0500 Original-Received: (qmail invoked by alias); 05 Dec 2012 11:55:19 -0000 Original-Received: from unknown (EHLO localhost) [84.88.51.85] by mail.gmx.net (mp040) with SMTP; 05 Dec 2012 12:55:19 +0100 X-Authenticated: #12333383 X-Provags-ID: V01U2FsdGVkX18FK05RchUFG+ZyHGIghflvC3VDHJHMZkpcqShb+B g/CzYPIktkhna3 Mail-Followup-To: Michael Albinus , emacs-devel@gnu.org In-Reply-To: <87r4n5ufjd.fsf@gmx.de> (Michael Albinus's message of "Wed, 05 Dec 2012 08:25:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.165.64.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:155289 Archived-At: Michael Albinus writes: > Llu=C3=ADs writes: >>> The following works for me: >>=20 >>> (defun ogc:--dbus-get-events (since until force-reload) >>> "Returns \"sssbxxa{sv}\"." >>> '("" "Test" "" :boolean nil :int64 63490176000 :int64 63490176001 >>> (:array :signature "{sv}"))) >>=20 >>> The last entry is an empty argument of type "a{sv}". >>=20 >> Ok, now it's not complaining, but still not working. > Hmm, I haven't installed a calendar client which I could use for > testing. I run dry tests via "dbus-send ...". > Which calendar client do you use? GNOME shell comes with a widget in the (by default, top) bar. Clicking on it invokes the "GetEvents" method I'm trying to implement. >> The signature is supposed to be "a(sssbxxa{sv})", but after (quickly) re= ading >> the manual I'm unable to return such a structure. > Try this one: > (defun ogc:--dbus-get-events (since until force-reload) > "Returns \"a(sssbxxa{sv})\"." > '((:array > (:struct "" "Test1" "" :boolean nil :int64 63490176000 :int64 634901= 76001 > (:array :signature "{sv}")) > (:struct "" "Test2" "" :boolean t :int64 63490176002 :int64 63490176= 003 > (:array :signature "{sv}"))))) Yes, I finally got it working with this same structure. I'll try to finish the rest and post the code in the org-mode list. Thanks a lot, Lluis --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth