From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Add doc string to org-is-habit-p Date: Wed, 18 Nov 2009 12:35:23 -0500 Message-ID: <1258565723-4832-1-git-send-email-bernt@norang.ca> Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NAoRL-000157-KX for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 12:35:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NAoRI-00012N-SN for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 12:35:35 -0500 Received: from [199.232.76.173] (port=55581 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NAoRI-000129-NG for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 12:35:32 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:56472) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NAoRH-0007jF-7O for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 12:35:32 -0500 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180] helo=mail.norang.ca) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1NAoRF-0007aJ-P0 for emacs-orgmode@gnu.org; Wed, 18 Nov 2009 17:35:30 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Cc: Bernt Hansen --- This trivial patch is available at git://git.norang.ca/org-mode.git doc lisp/org-habit.el | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lisp/org-habit.el b/lisp/org-habit.el index c27f6b9..d3179cf 100644 --- a/lisp/org-habit.el +++ b/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) -- 1.6.5.3.148.g785c5