瀏覽代碼

Add doc string to a function

Carsten Dominik 15 年之前
父節點
當前提交
2d511abb73
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 4 0
      lisp/ChangeLog
  2. 1 0
      lisp/org-habit.el

+ 4 - 0
lisp/ChangeLog

@@ -1,3 +1,7 @@
+2009-11-19  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-habit.el (org-is-habit-p): Add doc string.
+
 2009-11-18  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-archive.el (org-archive-subtree-default-with-confirmation):

+ 1 - 0
lisp/org-habit.el

@@ -128,6 +128,7 @@ relative to the current effective date."
     (error "Invalid duration string: %s" ts)))
 
 (defun org-is-habit-p (&optional pom)
+  "Is the task at POM or point a habit?"
   (string= "habit" (org-entry-get (or pom (point)) "STYLE")))
 
 (defun org-habit-parse-todo (&optional pom)