From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gregor Zattler Subject: [PATCH 1/3] Document max number of stars in headings in docstring of org-inlinetask-minlevel Date: Sun, 22 Jan 2012 14:15:16 +0100 Message-ID: <20120122131516.GC21012@shi.workgroup> References: <20120106002125.GA32086@shi.workgroup> <8762gp3aqz.fsf@norang.ca> <20120112214110.GB29496@shi.workgroup> <4047.1326406324@alphaville1> <5046.1326408982@alphaville1> <20120114161631.GC7727@shi.workgroup> <8789.1326566962@alphaville1> <20120122125019.GA21012@shi.workgroup> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RoxGq-0004vU-Fp for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 08:15:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RoxGp-0001ke-4Z for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 08:15:44 -0500 Received: from mailout-de.gmx.net ([213.165.64.23]:48551) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RoxGo-0001kU-Qi for emacs-orgmode@gnu.org; Sun, 22 Jan 2012 08:15:43 -0500 Content-Disposition: inline In-Reply-To: <20120122125019.GA21012@shi.workgroup> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Clocking only works with headings indented with less than `30' stars (hardcoded `lmax' value in `org-clock-sum'). Since especially inline tasks may dupe someone into using more stars, document the limit in the docsring of `org-inlinetask-min-level'. --- lisp/org-inlinetask.el | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/lisp/org-inlinetask.el b/lisp/org-inlinetask.el index a14e404..b8e8437 100644 --- a/lisp/org-inlinetask.el +++ b/lisp/org-inlinetask.el @@ -90,6 +90,9 @@ (defcustom org-inlinetask-min-level 15 "Minimum level a headline must have before it is treated as an inline task. +Don't set it to something higher than `29' or clocking will break since this +is the hardcoded maximum number of stars `org-clock-sum' will work with. + It is strongly recommended that you set `org-cycle-max-level' not at all, or to a number smaller than this one. In fact, when `org-cycle-max-level' is not set, it will be assumed to be one less than the value of smaller than -- 1.7.8.3