[O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]

2016-01-01 Thread Samuel W. Flint
Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


I use Org's habit feature.  I expect that when I mark a task such as the
following as done:

* TODO Weekly Review
SCHEDULED: <2016-01-01 Fri .+1w/2w>
:PROPERTIES:
:STYLE:habit
:END:

The SCHEDULED line should change, to reflect the new date.  As of right
now, it doesn't, and instead, the SCHEDULED line is removed, rendering
the "habit" useless.



Emacs  : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.17.8)
 of 2015-09-11 on buildvm-21.phx2.fedoraproject.org
Package: Org-mode version 8.3.2 (release_8.3.2-441-ga87dea @ 
/home/swflint/.emacs.d/org-mode/lisp/)

current state:
==
(setq
 org-capture-prepare-finalize-hook '(gnorb-registry-capture-abort-cleanup
 gnorb-gnus-capture-abort-cleanup 
org-id-get-create)
 org-tree-slide-mode-hook '((lambda nil (text-scale-increase 2)))
 org-hide-leading-stars t
 org-footnote-auto-adjust 'sort
 org-drill-optimal-factor-matrix '((1 (2.36 . 3.86) (2.5 . 4.0) 
(2.1797 . 3.72))
   (2 (2.2198 . 2.328) (2.36 . 
2.412)))
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-babel-hide-result-toggle-maybe
  org-babel-header-arg-expand)
 org-habit-show-all-today t
 org-latex-classes '(("beamer" "\\documentclass[presentation]{beamer}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("article" "\\documentclass[11pt]{article}"
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
  ("\\paragraph{%s}" . "\\paragraph*{%s}")
  ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
 ("report" "\\documentclass[11pt]{report}"
  ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . 
"\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 ("book" "\\documentclass[11pt]{book}" ("\\part{%s}" . 
"\\part*{%s}")
  ("\\chapter{%s}" . "\\chapter*{%s}")
  ("\\section{%s}" . "\\section*{%s}")
  ("\\subsection{%s}" . "\\subsection*{%s}")
  ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
 )
 org-insert-heading-hook '(org-expiry-insert-created)
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-skip-timestamp-if-done t
 org-download-method 'attach
 org-ellipsis "⤵"
 org-occur-hook '(org-first-headline-recenter)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-agenda-start-on-weekday nil
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-capture-after-finalize-hook '((lambda nil (org-agenda-to-appt t)))
 org-src-window-setup 'current-window
 org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
 org-babel-tangle-comment-format-beg "%source-name, %file"
 org-confirm-shell-link-function 'yes-or-no-p
 org-id-link-to-org-use-id t
 org-finalize-agenda-hook '((lambda nil (hl-line-mode)))
 org-after-tags-change-hook '(org-expiry-insert-created)
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-clock-idle-time 15
 org-startup-folded nil
 org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f" "bibtex %b" "pdflatex -shell-escape -interaction 
nonstopmode -output-directory %o %f" "pdflatex -shell-escape -interaction 
nonstopmode -output-directory %o %f")
 org-panes-split-overview-horizontally t
 org-special-ctrl-a/e t
 org-agenda-custom-commands '(("n" "Agenda + TODOs" ((agenda "" nil) (alltodo 
"" nil)) nil)
  ("s" "School Schedule" agenda ""
   ((org-agenda-tag-filter-preset (quote 
("+school")
  ("A" "List Assignments" agenda ""
   ((org-agenda-tag-filter-preset
 (quote ("+school" "+assignment")))
)
   (org-agenda-deadline-warning-days 10))
  )
 org-use-sub-superscripts '{}
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-expiry-handler-funct

Re: [O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]

2016-01-02 Thread Nicolas Goaziou
Hello,

swfl...@flintfam.org (Samuel W. Flint) writes:

> I use Org's habit feature.  I expect that when I mark a task such as the
> following as done:
>
> * TODO Weekly Review
> SCHEDULED: <2016-01-01 Fri .+1w/2w>
> :PROPERTIES:
> :STYLE:habit
> :END:
>
> The SCHEDULED line should change, to reflect the new date.  As of right
> now, it doesn't, and instead, the SCHEDULED line is removed, rendering
> the "habit" useless.

I cannot reproduce your problem. Could you try again without any
configuration on your side ?

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]

2016-01-02 Thread Samuel W. Flint
> Nicolas Goaziou writes:

NG> swfl...@flintfam.org (Samuel W. Flint) writes:
>>> Nicolas Goaziou writes:
>>
NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes:
>>
 I use Org's habit feature.  I expect that when I mark a task such
 as the following as done:

 * TODO Weekly Review SCHEDULED: <2016-01-01 Fri .+1w/2w>
 :PROPERTIES: :STYLE: habit :END:

 The SCHEDULED line should change, to reflect the new date.  As of
 right now, it doesn't, and instead, the SCHEDULED line is removed,
 rendering the "habit" useless.
>>
NG> I cannot reproduce your problem. Could you try again without any
NG> configuration on your side ?
>>
>> I went ahead and tried that, no configuration other than (require
>> 'org) and (require 'org-habit), and I had that same issue.  I then
>> tried removing my TODO states configuration (stored in the file), and
>> still have the same problem.

NG> Then I may be misunderstanding the issue. Would you mind describing
NG> it step by step (as a sequence of small buffer contents and
NG> keypresses) ?

Sure.

The buffer starts out like so:

* TODO Weekly Review
SCHEDULED: <2016-01-01 Fri .+1w/2w>
:PROPERTIES:
:STYLE:habit
:END:

With the point on any part of the headline, C-c C-t switches to DONE,
and the SCHEDULED line is updated, as long as there isn't any
customization of TODO states, and is updated to look like so:

* TODO Weekly Review
  SCHEDULED: <2016-01-09 Sat .+1w/2w>
  :PROPERTIES:
  :STYLE:habit
  :LAST_REPEAT: [2016-01-02 Sat 15:14]
  :END:
  - State "DONE"   from "TODO"   [2016-01-02 Sat 15:14]

If I have other TODO states setup, such as:
#+TODO: TODO(t) WORKING(w) | DONE(d!)
#+TODO: | CANCELED(c!)
the SCHEDULED line is not updated, but rather removed.

NG> Regards,

Thanks,

Sam

--
Samuel W. Flint
4096R/266596F4
  (9477 D23E 389E 40C5 2F10  DE19 68E5 318E 2665 96F4)
(λs.s s) λs.s s


signature.asc
Description: PGP signature


Re: [O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]

2016-01-03 Thread Nicolas Goaziou
Hello,

swfl...@flintfam.org (Samuel W. Flint) writes:

> The buffer starts out like so:
>
> * TODO Weekly Review
> SCHEDULED: <2016-01-01 Fri .+1w/2w>
> :PROPERTIES:
> :STYLE:habit
> :END:
>
> With the point on any part of the headline, C-c C-t switches to DONE,
> and the SCHEDULED line is updated, as long as there isn't any
> customization of TODO states, and is updated to look like so:
>
> * TODO Weekly Review
>   SCHEDULED: <2016-01-09 Sat .+1w/2w>
>   :PROPERTIES:
>   :STYLE:habit
>   :LAST_REPEAT: [2016-01-02 Sat 15:14]
>   :END:
>   - State "DONE"   from "TODO"   [2016-01-02 Sat 15:14]
>
> If I have other TODO states setup, such as:
> #+TODO: TODO(t) WORKING(w) | DONE(d!)
> #+TODO: | CANCELED(c!)
> the SCHEDULED line is not updated, but rather removed.

Still no luck.

I tried to change TODO keyword in the following buffer

  #+TODO: TODO(t) WORKING(w) | DONE(d!)
  #+TODO: | CANCELED(c!)

  * TODO Weekly Review
  SCHEDULED: <2016-01-09 sam. .+1w/2w>
  :PROPERTIES:
  :STYLE:habit
  :END:

but I cannot reproduce your problem, neither on stable or development
version, with or without `org-log-into-drawer'.


Regards,

-- 
Nicolas Goaziou