emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-mode habits graph dissapears
@ 2013-12-16 19:40 Javier Ortiz
  2013-12-16 23:00 ` Josiah Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Javier Ortiz @ 2013-12-16 19:40 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

Hi there!
I'm trying to learn about org-mode habits. Every time I write a new habit, I can see the color bar on the right, but after I mark the habit as "Done", it never appears again, I wonder if somebody could give me some advice, on how to fix this.

Thanks in advance.
/Joc 		 	   		  

[-- Attachment #2: Type: text/html, Size: 584 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode habits graph dissapears
  2013-12-16 19:40 org-mode habits graph dissapears Javier Ortiz
@ 2013-12-16 23:00 ` Josiah Schwab
       [not found]   ` <BAY172-W41CBE502D0107C3CBA7D3EDBDB0@phx.gbl>
  0 siblings, 1 reply; 4+ messages in thread
From: Josiah Schwab @ 2013-12-16 23:00 UTC (permalink / raw)
  To: Javier Ortiz; +Cc: emacs-orgmode@gnu.org


Javier Ortiz writes:

> Hi there!  I'm trying to learn about org-mode habits. Every time I
> write a new habit, I can see the color bar on the right, but after I
> mark the habit as "Done", it never appears again, I wonder if somebody
> could give me some advice, on how to fix this.

Could you give us some more information?  For example, a sample habit
entry that displays this behavior would be useful.

Best,
Josiah

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode habits graph dissapears
       [not found]   ` <BAY172-W41CBE502D0107C3CBA7D3EDBDB0@phx.gbl>
@ 2013-12-18  6:23     ` Josiah Schwab
       [not found]       ` <BAY172-W371D310B58B95E59E6BC29DBDA0@phx.gbl>
  0 siblings, 1 reply; 4+ messages in thread
From: Josiah Schwab @ 2013-12-18  6:23 UTC (permalink / raw)
  To: Javier Ortiz; +Cc: emacs-orgmode@gnu.org

Hi Javier,

> Thank you for your response. Here it is what I do:

Thanks for the more detailed information.  This is helpful.  Please
continue to cc the org-mode list your responses.

> I open one of my agenda files, write the new habit, schedule it with
> C-s, then add a repeat interval, and then I do C-c C-x p, write
> =STYLE=, and then habit.  The result, is like this:
>
> * new habit
>   SCHEDULED: <2013-12-17 Tue .+2d/4d>
>  :PROPERTIES:
>  :STYLE:    habit
>  :END:
>
> I notice that I don't have the line: :LAST_REPEAT: then, I check my
> agenda, with C-a a, and I see the habit, with a color bar on the
> right, and the symbol "!".  = personal: new habit !  =
>
> Then I mark the new habit as "DONE",  C-c C-t DONE, now  I update the
> agenda view with "r".  The new habit is gone, and It won't appear,
> again, If I check the agenda file, it says:
>
> * DONE new habit
>  CLOSED: [2013-12-17 Tue 07:55]
> SCHEDULED: <2013-12-17 Tue .+2d/4d>
>  - State "DONE"       from "STARTED"    [2013-12-17 Tue 07:55]
>  :PROPERTIES:
>  :STYLE:
>    habit
>  :END:
>
> And It won't appear again, I noticed that it doesn't say:
> :LAST_REPEAT: Am I missing something?

If I follow your example, I observe the same behavior.  Though I dispute
that the habit won't appear again: I think it will, just in 2 days, when
it is time for you to do that habit again.  So as I understand it, you
are observing the expected behavior.

If this is not what you want, you may want to look at the ways to
customize org-habit, in particular

,----
| (defcustom org-habit-show-all-today nil
|   "If non-nil, will show the consistency graph of all habits on
| today's agenda, even if they are not scheduled."
|   :group 'org-habit
|   :type 'boolean)
`----

If I 
  (setq org-habit-show-all-today t)
then all habits are shown, even ones which I don't need to do today.  At
least to me, this sounds like the behavior you are seeking.

Hope that helps,
Josiah

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: org-mode habits graph dissapears
       [not found]       ` <BAY172-W371D310B58B95E59E6BC29DBDA0@phx.gbl>
@ 2013-12-19 21:14         ` Josiah Schwab
  0 siblings, 0 replies; 4+ messages in thread
From: Josiah Schwab @ 2013-12-19 21:14 UTC (permalink / raw)
  To: Javier Ortiz; +Cc: Org Mode

[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]


Javier Ortiz writes:

> Thank you for your response!

Please CC the org-mode list in your responses.  Others can join the
conversation and the results will be archived for use by future users.

> I added
>  (defcustom org-habit-show-all-today nil
>  "If non-nil, will show the consistency graph of all habits on
>  today's agenda, even if they are not scheduled."
>  :group 'org-habit
>  :type 'boolean)

Here I was just quoting from org-habit.el.  This is not something you
would add you your .emacs.

> To my .emacs file, restarted emacs, then =C-a a=, but I don't see the
> consistency graph again.  Should I try something else?

I'm still not exactly sure what behavior you want, but it seems like
you want to customize one or the other of

,----
| (defcustom org-habit-show-habits-only-for-today t
|   "If non-nil, only show habits on today's agenda, and not for future days.
| Note that even when shown for future days, the graph is always
| relative to the current effective date."
|   :group 'org-habit
|   :type 'boolean)
`----

,----
| (defcustom org-habit-show-all-today nil
|   "If non-nil, will show the consistency graph of all habits on
| today's agenda, even if they are not scheduled."
|   :group 'org-habit
|   :type 'boolean)
`----

For example, suppose that I want habits shown today and at their future
scheduled date.  Then with the attached minimal startup file (adjust
paths as necessary and start emacs with "emacs -Q -l minimal-org.el")
and orgmode 8.2.4, I see consistency graphs as one expects.

Josiah

[-- Attachment #2: minimal-org.el --]
[-- Type: application/emacs-lisp, Size: 674 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-19 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-16 19:40 org-mode habits graph dissapears Javier Ortiz
2013-12-16 23:00 ` Josiah Schwab
     [not found]   ` <BAY172-W41CBE502D0107C3CBA7D3EDBDB0@phx.gbl>
2013-12-18  6:23     ` Josiah Schwab
     [not found]       ` <BAY172-W371D310B58B95E59E6BC29DBDA0@phx.gbl>
2013-12-19 21:14         ` Josiah Schwab

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).