Browse Source

org-clock.el (org-show-notification): Use `fboundp' instead of `featurep' and the additional `require'.

* org-clock.el (org-show-notification): Use `fboundp' instead
of `featurep' and the additional `require'.

Thanks to Peter Münster for reporting this.
Bastien Guerry 13 years ago
parent
commit
7d64e883b0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-clock.el

+ 1 - 2
lisp/org-clock.el

@@ -637,8 +637,7 @@ use libnotify if available, or fall back on a message."
 	((stringp org-show-notification-handler)
 	 (start-process "emacs-timer-notification" nil
 			org-show-notification-handler notification))
-	((featurep 'notifications)
-	 (require 'notifications)
+	((fboundp 'notifications-notify)
 	 (notifications-notify
 	  :title "Org-mode message"
 	  :body notification