From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Garmaise Subject: Re: "peculiar" error with countdown timer in org-agenda Date: Tue, 3 Mar 2020 12:21:03 -0500 Message-ID: References: <84tv35af2i.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000c442ea059ff6870a" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36508) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9BEI-0001Zf-JQ for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:21:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9BEH-0001NV-6l for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:21:14 -0500 Received: from mail-io1-xd2c.google.com ([2607:f8b0:4864:20::d2c]:37469) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9BEH-0001NH-0f for emacs-orgmode@gnu.org; Tue, 03 Mar 2020 12:21:13 -0500 Received: by mail-io1-xd2c.google.com with SMTP id c17so4473213ioc.4 for ; Tue, 03 Mar 2020 09:21:12 -0800 (PST) In-Reply-To: <84tv35af2i.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Marco Wahl Cc: emacs-orgmode --000000000000c442ea059ff6870a Content-Type: text/plain; charset="UTF-8" Hi Marco, I will check. However I am on Windows 7-64 and to the best of my knowledge Dbus is not available for this platform. There were some efforts to make it work but I don't think they are current. In any case, as the error message said, this version of emacs isn't compiled with Dbus, which makes sense for a Windows version. I will try to create my own handler and figure out why dbus notification is being attempted on a version of Emacs compiled without it. Best, Ian On Tue, Mar 3, 2020 at 6:08 AM Marco Wahl wrote: > Hi Ian, > > Thanks for reporting. > > > In Org-Agenda, I press ';' to start a countdown timer. > > I enter 1 minute to test. > > When timer reaches zero, I see this error in minibuffer > > > > dbus-call-method: peculiar error: "Emacs not compiled with dbus support" > > > > Also, timer display is not removed from mode-line as expected. > > I checked this some and I think the problem lies in function > org-show-notification. That function references and possibly uses > function notifications-notify which depends on a proper setup of the > dbus stuff. I guess this is the gist of the bug. > > You can place your own handler though. For this set variable > > org-show-notification-handler > > to e.g. function > > message > > Can you please try this out? > > About hunting the bug: possibly it would be good to add a check if the > dbus system is up. Can this be done easily? Or add a further > configuration item to indicate that the dbus system shall be used. > > > Best, > -- Marco > > > -- ===== Ian Garmaise Consultant Phorix Solutions Group ian.g@phorixsol.com Toronto cell: 416.432.2251 NYC: 917.512.9535 https://www.linkedin.com/in/igarmaise/ http://www.PhorixSol.com --000000000000c442ea059ff6870a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Marco,

I will chec= k.=C2=A0 However I am on Windows 7-64 and to the best of my knowledge Dbus = is not available for this platform.=C2=A0 There were some efforts to make i= t work but I don't think they are current.
In any case, as the error message said, this version of emacs isn'= ;t compiled with Dbus, which makes sense for a Windows version.
I will try to create my own handler and figure out w= hy dbus notification is being attempted on a version of Emacs compiled with= out it.

Best,

Ian



On Tue, Mar 3, 2020 at 6:08 AM Marco Wahl <= ;marcowahlsoft@gmail.com>= wrote:
Hi Ian,<= br>
Thanks for reporting.

> In Org-Agenda, I press ';' to start a countdown timer.
> I enter 1 minute to test.
> When timer reaches zero, I see this error in minibuffer
>
> dbus-call-method: peculiar error: "Emacs not compiled with dbus s= upport"
>
> Also, timer display is not removed from mode-line as expected.

I checked this some and I think the problem lies in function
org-show-notification.=C2=A0 That function references and possibly uses
function notifications-notify which depends on a proper setup of the
dbus stuff.=C2=A0 I guess this is the gist of the bug.

You can place your own handler though.=C2=A0 For this set variable

=C2=A0 =C2=A0 org-show-notification-handler

to e.g. function

=C2=A0 =C2=A0message

Can you please try this out?

About hunting the bug: possibly it would be good to add a check if the
dbus system is up.=C2=A0 Can this be done easily?=C2=A0 Or add a further configuration item to indicate that the dbus system shall be used.


Best,
-- Marco




--
=3D=3D=3D=3D=3D
Ian Garmaise
ConsultantPhorix Solutions Group
ian.g@phorixsol.com
Toronto cell: 416.432.2251
NYC: 917.= 512.9535

https://www.linkedin.com/in/igarmaise/

http://www.PhorixSol.com --000000000000c442ea059ff6870a--