From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] Allow more asterisks in tasks when summarizing clock time Date: Wed, 27 Feb 2008 19:29:45 -0500 Message-ID: <87y795exdy.fsf@gollum.intra.norang.ca> References: <87y7960wnw.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUWem-00051f-7u for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 19:29:52 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUWek-0004zn-Ko for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 19:29:51 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUWek-0004zd-9f for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 19:29:50 -0500 Received: from mho-02-bos.mailhop.org ([63.208.196.179]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUWek-0003Wl-0q for emacs-orgmode@gnu.org; Wed, 27 Feb 2008 19:29:50 -0500 In-Reply-To: <87y7960wnw.fsf@gollum.intra.norang.ca> (Bernt Hansen's message of "Wed\, 27 Feb 2008 19\:09\:07 -0500") 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: Carsten Dominik Cc: Org Mode Mailing List 10 asterisks is only 6 levels deep when odd levels only are used. This increases the number of asterisks to 40 (still an arbitrary number) but it's much larger than the current limit of 10. This fixes C-c C-x C-d when trying to summarize clock time on a deeply nested task ,----[ test.org ] | * Task1 | *** Task2 | ***** Task3 | ******* Task4 | ********* Task5 | *********** Task6 | :CLOCK: | CLOCK: [2008-02-27 Wed 14:30]--[2008-02-27 Wed 14:44] => 0:14 | :END: `---- --- This patch works for me. You can apply this patch directly in git by saving this message in mbox format (e.g. file.mbox) and then doing $ git am file.mbox This will create the commit on the current HEAD with all of the provided commit message text. The text between the three dashes (---) above and the start of the diffstat below (org.el | 2 +-) is discarded which is why I'm writing my extra notes here :) HTH, -Bernt org.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/org.el b/org.el index 0c2762d..504dcd5 100644 --- a/org.el +++ b/org.el @@ -18919,7 +18919,7 @@ will be easy to remove." (make-string (+ off (max 0 (- c (current-column)))) ?.) (org-add-props (format "%s %2d:%02d%s" (make-string l ?*) h m - (make-string (- 10 l) ?\ )) + (make-string (- 40 l) ?\ )) '(face secondary-selection)) "")) (if (not (featurep 'xemacs)) -- 1.5.4.3.192.g923d4