emacs-orgmode
[Top][All Lists]
Advanced

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

[Orgmode] Possible bug?


From: Christos Chryssochoidis
Subject: [Orgmode] Possible bug?
Date: Fri, 30 Apr 2010 15:21:03 +0300

Hi,

I wanted to ask about a behavior that doesn't seem right to me, if
it's indeed a bug or rather some misunderstanding of mine.
Trying to update the effort time of a task with C-c C-x C-e, and using
the syntax +HH:MM, I've found that instead of augmenting the effort
time by that amount of time, org-mode just set the effort time to that
amount; not relatively to the old effort time, but absolutely as if
the sign (+/-) didn't exist.
I modified just one line in org-clock.el and now it seems to work as I
expected. My modification follows below.

Thanks to all developers of org-mode!



diff --git a/lisp/org-clock.el b/lisp/org-clock.el
index 07c1083..535dcab 100755
--- a/lisp/org-clock.el
+++ b/lisp/org-clock.el
@@ -500,7 +500,7 @@ the mode line."
        ;; A string.  See if it is a delta
        (setq sign (string-to-char value))
        (if (member sign '(?- ?+))
-          (setq current (org-hh:mm-string-to-minutes (substring current 1)))
+          (setq current (org-hh:mm-string-to-minutes current))
         (setq current 0))
        (setq value (org-hh:mm-string-to-minutes value))
        (if (equal ?- sign)




reply via email to

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