emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] Allow more asterisks in tasks when summarizing clock t


From: Bernt Hansen
Subject: [Orgmode] [PATCH] Allow more asterisks in tasks when summarizing clock time
Date: Wed, 27 Feb 2008 19:29:45 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]