summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Sillador <e19293001@gmail.com>2020-01-26 09:09:02 +0100
committerBastien <bzg@gnu.org>2020-01-26 09:09:02 +0100
commit8dd2984a942fbf74f49bdd11270b447ba805397a (patch)
tree634acd33bdb9fc7402cced3e3926a5839679d984
parentc6a34dc01fb1ba6387934ba9f88e7253c08028ef (diff)
downloadorg-mode-8dd2984a942fbf74f49bdd11270b447ba805397a.tar.gz
org-clock.el: Handle notification on windows-nt
* lisp/org-clock.el (org-show-notification): Handle notification on windows-nt. TINYCHANGE
-rw-r--r--lisp/org-clock.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 06df2d4..1e35567 100644
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -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))))