From mboxrd@z Thu Jan 1 00:00:00 1970 From: Javier Ortiz Subject: org-mode habits graph dissapears Date: Mon, 16 Dec 2013 19:40:07 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_ea10bfc4-c8e0-4e8c-9c01-4f13e3d56533_" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vse1Y-00080O-2J for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 14:40:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vse1Q-0007ni-Py for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 14:40:16 -0500 Received: from bay0-omc1-s8.bay0.hotmail.com ([65.54.190.19]:12518) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vse1Q-0007nM-KG for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 14:40:08 -0500 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" --_ea10bfc4-c8e0-4e8c-9c01-4f13e3d56533_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi there! I'm trying to learn about org-mode habits. Every time I write a new habit= =2C I can see the color bar on the right=2C but after I mark the habit as "= Done"=2C it never appears again=2C I wonder if somebody could give me some = advice=2C on how to fix this. Thanks in advance. /Joc = --_ea10bfc4-c8e0-4e8c-9c01-4f13e3d56533_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi there!

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

Thanks in advance.

/Joc
= --_ea10bfc4-c8e0-4e8c-9c01-4f13e3d56533_-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-mode habits graph dissapears Date: Mon, 16 Dec 2013 15:00:45 -0800 Message-ID: <87y53kjt9e.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37129) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsh9f-0003bp-5W for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 18:00:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vsh9d-00073D-MI for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 18:00:51 -0500 Received: from mail-yh0-x235.google.com ([2607:f8b0:4002:c01::235]:43913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vsh9d-00072q-I7 for emacs-orgmode@gnu.org; Mon, 16 Dec 2013 18:00:49 -0500 Received: by mail-yh0-f53.google.com with SMTP id b20so4285294yha.26 for ; Mon, 16 Dec 2013 15:00:48 -0800 (PST) In-reply-to: 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: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-mode habits graph dissapears Date: Tue, 17 Dec 2013 22:23:21 -0800 Message-ID: <87d2kuk78m.fsf@gmail.com> References: <87y53kjt9e.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtAXf-0002Y3-PD for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 01:23:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtAXX-00009M-68 for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 01:23:35 -0500 Received: from mail-pa0-x231.google.com ([2607:f8b0:400e:c03::231]:57266) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtAXW-00009G-U9 for emacs-orgmode@gnu.org; Wed, 18 Dec 2013 01:23:27 -0500 Received: by mail-pa0-f49.google.com with SMTP id kx10so5508291pab.36 for ; Tue, 17 Dec 2013 22:23:25 -0800 (PST) In-reply-to: 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: 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Josiah Schwab Subject: Re: org-mode habits graph dissapears Date: Thu, 19 Dec 2013 13:14:48 -0800 Message-ID: <87d2ksilvb.fsf@gmail.com> References: <87y53kjt9e.fsf@gmail.com> <87d2kuk78m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtkvt-0005c0-Sl for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:15:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vtkvl-00062q-Fz for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:15:01 -0500 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:60350) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vtkvl-00062e-8f for emacs-orgmode@gnu.org; Thu, 19 Dec 2013 16:14:53 -0500 Received: by mail-pa0-f53.google.com with SMTP id hz1so1692210pad.40 for ; Thu, 19 Dec 2013 13:14:52 -0800 (PST) In-reply-to: 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: Javier Ortiz Cc: Org Mode --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: application/emacs-lisp Content-Disposition: attachment; filename=minimal-org.el Content-Transfer-Encoding: quoted-printable ;;; Minimal setup to load latest `org-mode' ;; activate debugging (setq debug-on-error t debug-on-signal nil debug-on-quit nil) ;; add latest org-mode to load path (add-to-list 'load-path (expand-file-name "/path/to/org-mode/lisp")) (add-to-list 'load-path (expand-file-name "/path/to/org-mode/contrib/lisp" = t)) ;; org-agenda keybinding (define-key global-map "\C-ca" 'org-agenda) ;; attempt to reproduce habit issue (setq org-modules '(org-habit)) (setq org-agenda-files '("/path/to/habit.org")) ;; show habits in the future (setq org-habit-show-habits-only-for-today nil) ;; show all habits today (setq org-habit-show-all-today t) --=-=-=--