From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?5L2V5Yip5YuH?= Subject: Bug: org-habit treats all repeat tasks as ".+" type [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/)] Date: Tue, 3 Mar 2015 16:27:59 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b86d6cac441d405105e1c08 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSiBP-0000vq-5E for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 03:28:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSiBN-0002H3-4b for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 03:28:03 -0500 Received: from mail-wi0-x231.google.com ([2a00:1450:400c:c05::231]:36636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSiBM-0002Gt-Q9 for emacs-orgmode@gnu.org; Tue, 03 Mar 2015 03:28:01 -0500 Received: by widem10 with SMTP id em10so20805118wid.1 for ; Tue, 03 Mar 2015 00:27:59 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --047d7b86d6cac441d405105e1c08 Content-Type: text/plain; charset=UTF-8 It looks like org-habit only handle the ".+" repeater correctly, though the document says it supports ".+", "++" and "+". For example, when create agenda for the following org content. * TODO Test_+ SCHEDULED: <2015-03-02 Mon +1w> - State "DONE" from "TODO" [2015-02-23 Mon 10:56] - State "DONE" from "TODO" [2015-02-16 Mon 10:56] - State "DONE" from "TODO" [2015-02-10 Tue 10:56] - State "DONE" from "READY" [2015-02-02 Mon 10:56] :PROPERTIES: :STYLE: habit :LAST_REPEAT: [2015-02-23 Mon 10:56] :ID: e960c39e-4f92-4ef0-a5ee-a4d3fcfd26bf :END: * TODO Test_++ SCHEDULED: <2015-03-02 Mon ++1w> - State "DONE" from "TODO" [2015-02-23 Mon 10:56] - State "DONE" from "TODO" [2015-02-15 Sun 10:56] - State "DONE" from "READY" [2015-02-02 Mon 10:56] :PROPERTIES: :STYLE: habit :LAST_REPEAT: [2015-02-23 Mon 10:56] :END: The Test_+ was marked as DONE one day after 02-09 (did not finish on time) and Test_++ missed the 02-09 schedule. But the subsequent schedules are DONE on time. So, I expect there should be one red for each bar. But in fact, it mark the DONE on 02-16 of Test_+ as blue and the DONE on 02-23 of Test_++ as red, which should only happen when using ".+" -- the subsequent schedule will be shifted n day/week/month after the last repeat. http://imgur.com/Cvh0Xxb ------------------------------------------------------------------------ Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.7) of 2014-03-08 on lamiak, modified by Debian Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/org/) current state: ============== (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-habit-preceding-days 30 org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-edit-timestamp-down-means-later t org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-agenda-start-on-weekday nil org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-log-done t org-confirm-shell-link-function 'yes-or-no-p org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-habit-following-days 3 org-agenda-include-diary t org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-tags-column 80 org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-habit-show-habits-only-for-today nil org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-agenda-tags-column -30 org-export-first-hook '(org-beamer-initialize-open-trackers) org-export-interblocks '((src org-babel-exp-non-block-elements)) org-modules '("org-habit" org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-w3m org-wl) org-fast-tag-selection-single-key 'expert org-agenda-window-setup 'current-window org-agenda-span 14 org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-completion-use-ido t org-export-kill-product-buffer-when-displayed t org-habit-graph-column 30 org-agenda-files '("~/Dropbox/notes/TODOList.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) --047d7b86d6cac441d405105e1c08 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It looks like org-habit only handle the ".+" rep= eater correctly, though
the document says it supports ".+", &q= uot;++" and "+".

For example, when create agenda for = the following org content.

* TODO Test_+
SCHEDULED: <2015-03-0= 2 Mon +1w>
- State "DONE"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 from "TODO"=C2=A0 [2015-02-23 Mon 10:56]
- State "DON= E"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "TODO"=C2=A0 [20= 15-02-16 Mon 10:56]
- State "DONE"=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 from "TODO"=C2=A0 [2015-02-10 Tue 10:56]
- State &qu= ot;DONE"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "READY" [2= 015-02-02 Mon 10:56]
:PROPERTIES:
:STYLE:=C2=A0=C2=A0=C2=A0 habit
= :LAST_REPEAT: [2015-02-23 Mon 10:56]
:ID:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 e960c39e-4f92-4ef0-a5ee-a4d3fcfd26bf
:END:

* TODO Test_++<= br>SCHEDULED: <2015-03-02 Mon ++1w>
- State "DONE"=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "TODO"=C2=A0 [2015-02-23 Mon = 10:56]
- State "DONE"=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from= "TODO"=C2=A0 [2015-02-15 Sun 10:56]
- State "DONE"= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 from "READY" [2015-02-02 Mon= 10:56]
:PROPERTIES:
:STYLE:=C2=A0=C2=A0=C2=A0 habit
:LAST_REPEAT:= [2015-02-23 Mon 10:56]
:END:

The Test_+ was marked as DONE one d= ay after 02-09 (did not finish on time)
and Test_++ missed the 02-09 sch= edule. But the subsequent schedules are
DONE on time.

So, I expec= t there should be one red for each bar.

But in fact, it mark the DON= E on 02-16 of Test_+ as blue and the DONE
on 02-23 of Test_++ as red, wh= ich should only happen when using ".+" --
the subsequent sched= ule will be shifted n day/week/month after the last repeat.

http://imgur.com/Cvh0Xxb

---------= ---------------------------------------------------------------


=
Emacs=C2=A0 : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.= 7)
=C2=A0of 2014-03-08 on lamiak, modified by Debian
Package: Org-mod= e version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/share/emacs/24.3/lisp/or= g/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
= (setq
=C2=A0org-export-preprocess-before-selecting-backend-code-hook = 9;(org-beamer-select-beamer-code)
=C2=A0org-tab-first-hook '(org-hid= e-block-toggle-maybe
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 org-src-native-tab-command-maybe
=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-babel-hide-result-tog= gle-maybe
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 org-babel-header-arg-expand)
=C2=A0org-habit-preceding-days 30=C2=A0org-speed-command-hook '(org-speed-command-default-hook
=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org-babel-spee= d-command-hook)
=C2=A0org-edit-timestamp-down-means-later t
=C2=A0org= -occur-hook '(org-first-headline-recenter)
=C2=A0org-metaup-hook = 9;(org-babel-load-in-session-maybe)
=C2=A0org-agenda-start-on-weekday ni= l
=C2=A0org-export-preprocess-before-normalizing-links-hook '(org-re= move-file-link-modifiers)
=C2=A0org-log-done t
=C2=A0org-confirm-shel= l-link-function 'yes-or-no-p
=C2=A0org-export-latex-final-hook '= (org-beamer-amend-header org-beamer-fix-toc
=C2=A0=C2=A0 =C2=A0=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-beame= r-auto-fragile-frames
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-beamer-place-default-action= s-for-lists)
=C2=A0org-export-latex-after-initial-vars-hook '(org-be= amer-after-initial-vars)
=C2=A0org-habit-following-days 3
=C2=A0org-a= genda-include-diary t
=C2=A0org-after-todo-state-change-hook '(org-c= lock-out-if-current)
=C2=A0org-src-mode-hook '(org-src-babel-configu= re-edit-buffer
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 org-src-mode-configure-edit-buffer)
=C2=A0org-tags-column 80
= =C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text)
=C2= =A0org-babel-pre-tangle-hook '(save-buffer)
=C2=A0org-mode-hook '= ;(#[nil "\300\301\302\303\304$\207"
=C2=A0=C2=A0 =C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 [org-add-hook change-major-mode-hook org-show-blo= ck-all
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 append l= ocal]
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 5]
=C2=A0=C2= =A0 =C2=A0=C2=A0=C2=A0 =C2=A0 #[nil "\300\301\302\303\304$\207"=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 [org-add-hook change-m= ajor-mode-hook
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0 = org-babel-show-result-all append local]
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 5]
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0 org-babel-r= esult-hide-spec org-babel-hide-all-hashes)
=C2=A0org-ctrl-c-ctrl-c-hook = '(org-babel-hash-at-point
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0 =C2=A0=C2=A0 org-babel-execute-safely-maybe)
=C2=A0org-cycle-h= ook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org-cycle-show-empty-lines
=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 org-optimize-window-after-visibility= -change)
=C2=A0org-habit-show-habits-only-for-today nil
=C2=A0org-exp= ort-latex-format-toc-function 'org-export-latex-format-toc-default
= =C2=A0org-export-blocks '((src org-babel-exp-src-block nil)
=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (export-comment or= g-export-blocks-format-comment t)
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (ditaa org-export-blocks-format-ditaa nil)
=C2= =A0=C2=A0 =C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (dot org-export= -blocks-format-dot nil))
=C2=A0org-agenda-tags-column -30
=C2=A0org-e= xport-first-hook '(org-beamer-initialize-open-trackers)
=C2=A0org-ex= port-interblocks '((src org-babel-exp-non-block-elements))
=C2=A0org= -modules '("org-habit" org-bbdb org-bibtex org-docview org-gn= us org-info
=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-= jsinfo org-irc org-mew org-mhe org-rmail org-vm org-w3m
=C2=A0=C2=A0 =C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 org-wl)
=C2=A0org-fast-tag-selec= tion-single-key 'expert
=C2=A0org-agenda-window-setup 'current-w= indow
=C2=A0org-agenda-span 14
=C2=A0org-confirm-elisp-link-function = 'yes-or-no-p
=C2=A0org-metadown-hook '(org-babel-pop-to-session-= maybe)
=C2=A0org-completion-use-ido t
=C2=A0org-export-kill-product-b= uffer-when-displayed t
=C2=A0org-habit-graph-column 30
=C2=A0org-agen= da-files '("~/Dropbox/notes/TODOList.org")
=C2=A0org-clock= -out-hook '(org-clock-remove-empty-clock-drawer)
=C2=A0)

--047d7b86d6cac441d405105e1c08--