summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2012-04-02 16:52:16 +0200
committerBastien Guerry <bzg@altern.org>2012-04-02 16:52:16 +0200
commit7d64e883b0c2982c31fbb3c379a2c28221b04807 (patch)
tree87b352192695e60c84493c9b16c740ec9b55e671
parenta5774431b3471f0af7c21af3e078dcd33c6754b8 (diff)
downloadorg-mode-7d64e883b0c2982c31fbb3c379a2c28221b04807.tar.gz
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.
-rw-r--r--lisp/org-clock.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index b735795..27ba8a3 100644
--- a/lisp/org-clock.el
+++ b/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