emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-show-notification of org-clock.el broken on MS Windows
@ 2020-01-24  9:08 Tim Schumacher
  2020-01-26  8:12 ` Bastien
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Schumacher @ 2020-01-24  9:08 UTC (permalink / raw)
  To: emacs-orgmode

Hi folks,

I have a snippet that clocks me in, if I set the TOOD-keyword of an item to
started. So some time after working on that item on and off, I got a stack trace
and it would not change the keyword to started. The error was, that emacs was
not compiled with dbus support and I thought, hell yeah, I'm on MS Windows, I
don't have dbus here. So I looked at the stack trace and found
org-clock-notify-once-if-expired which wants to show a notification if I took
longer than I estimated. Than digging deeper I found org-show-notification which
is where the actual error happens. It checks if the function
notifications-notify exists and then tries to use it. On my system the function
is available, but does not work because I don't have dbus support.

In my opinion these two actionable items should be done:

* The function org-show-notification should be more robust. It should not fail
  if it can't fire a notification for whatever reason.
* On MS Windows the function w32-notification-notify should be used.

Maybe someone has a quick fix, if not I can try my non existant elisp foo and hack
together a patch tomorrow, but please be gentle with me.

Thanks for your time and great effort into org-mode!

Tim

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-01-26 16:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-24  9:08 org-show-notification of org-clock.el broken on MS Windows Tim Schumacher
2020-01-26  8:12 ` Bastien
2020-01-26 11:19   ` Tim Schumacher
2020-01-26 16:37     ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).