浏览代码

Keep byte compiler happy.

Bastien Guerry 14 年之前
父节点
当前提交
e13843ef65
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lisp/org-clock.el

+ 2 - 0
lisp/org-clock.el

@@ -35,6 +35,7 @@
   (require 'cl))
 
 (declare-function calendar-absolute-from-iso    "cal-iso"    (&optional date))
+(declare-function notifications-notify "notifications" ())
 (defvar org-time-stamp-formats)
 
 (defgroup org-clock nil
@@ -558,6 +559,7 @@ use libnotify if available, or fall back on a message."
 	 (start-process "emacs-timer-notification" nil
 			org-show-notification-handler notification))
 	((featurep 'notifications)
+	 (require 'notifications)
 	 (notifications-notify
 	  :title "Org-mode message"
 	  :body notification