Browse Source

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

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

TINYCHANGE
Edward Sillador 1 month ago
parent
commit
8dd2984a94
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lisp/org-clock.el

+ 5 - 0
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))))