emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Christos Chryssochoidis <c.chryssochoidis@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Possible bug?
Date: Fri, 30 Apr 2010 15:21:03 +0300	[thread overview]
Message-ID: <h2sf6dcfec81004300521j7ab118dblab457fa681c46a5e@mail.gmail.com> (raw)

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	other threads:[~2010-04-30 12:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=h2sf6dcfec81004300521j7ab118dblab457fa681c46a5e@mail.gmail.com \
    --to=c.chryssochoidis@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).