浏览代码

Udate the docstring of org-show-notification.

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

+ 4 - 2
lisp/ChangeLog

@@ -1,10 +1,12 @@
 2009-07-26  Bastien Guerry  <bzg@altern.org>
 2009-07-26  Bastien Guerry  <bzg@altern.org>
 
 
+	* org-clock.el (org-show-notification): Update the docstring.
+
 	* org.el (org-provide-todo-statistics): Allow new value
 	* org.el (org-provide-todo-statistics): Allow new value
 	'all-headlines for this option, which includes entries with no
 	'all-headlines for this option, which includes entries with no
 	TODO keywords in the todo statistics.
 	TODO keywords in the todo statistics.
-	(org-update-parent-todo-statistics): Possibly use the new option
-	from `org-provide-todo-statistics'.
+	(org-update-parent-todo-statistics): Possibly use the new
+	'all-headline value from `org-provide-todo-statistics'.
 
 
 2009-07-25  Bastien Guerry  <bzg@altern.org>
 2009-07-25  Bastien Guerry  <bzg@altern.org>
 
 

+ 3 - 1
lisp/org-clock.el

@@ -445,7 +445,9 @@ Notification is shown only once."
 	(setq org-clock-notification-was-shown nil)))))
 	(setq org-clock-notification-was-shown nil)))))
 
 
 (defun org-show-notification (notification)
 (defun org-show-notification (notification)
-  "Show notification. Use libnotify, if available."
+  "Show notification.  
+Use `org-show-notification-handler' if defined,
+use libnotify if available, or fall back on a message."
   (cond ((functionp org-show-notification-handler)
   (cond ((functionp org-show-notification-handler)
 	 (funcall org-show-notification-handler notification))
 	 (funcall org-show-notification-handler notification))
 	((stringp org-show-notification-handler)
 	((stringp org-show-notification-handler)