org-clock.el: Handle notification on windows-nt

* lisp/org-clock.el (org-show-notification): Handle notification
on windows-nt.

TINYCHANGE
This commit is contained in:
Edward Sillador 2020-01-26 09:09:02 +01:00 committed by Bastien
parent c6a34dc01f
commit 8dd2984a94
1 changed files with 5 additions and 0 deletions

View File

@ -823,6 +823,11 @@ use libnotify if available, or fall back on a message."
((executable-find "notify-send")
(start-process "emacs-timer-notification" nil
"notify-send" notification))
((string-equal system-type "windows-nt")
(w32-notification-close (w32-notification-notify
:title "Org mode message"
:body notification
:urgency 'low)))
;; Maybe the handler will send a message, so only use message as
;; a fall back option
(t (message "%s" notification))))