emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Possible bug?
@ 2010-04-30 12:21 Christos Chryssochoidis
  0 siblings, 0 replies; only message in thread
From: Christos Chryssochoidis @ 2010-04-30 12:21 UTC (permalink / raw)
  To: emacs-orgmode

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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-04-30 12:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-30 12:21 Possible bug? Christos Chryssochoidis

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).