emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* habits not working
@ 2016-01-04 14:49 Tyler Smith
  2016-01-04 14:59 ` Dave Marquardt
  0 siblings, 1 reply; 3+ messages in thread
From: Tyler Smith @ 2016-01-04 14:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

Habits don't seem to be working for me anymore, and I'm not sure why.

Steps to reproduce:

emacs -Q

load org mode with minimal config for habits:

;; test-org.el
(require 'package)
(setq package-load-list
      '((org-plus-contrib t)))
(package-initialize)

(setq org-agenda-files '("~/scratch/orghabits.org"))

(setq org-modules '(org-habit))

With one habit defined in ~/scratch/orghabits.org:

* Habits
** TODO Exercise
   SCHEDULED: <2016-01-04 Mon .+1d>
   :LOGBOOK:  
   - State "DONE"       from "TODO"       [2016-01-03 Sun 22:32]
   - State "DONE"       from "TODO"       [2016-01-02 Sat 17:07]
   - State "DONE"       from "TODO"       [2016-01-01 Fri 23:03]
   - State "DONE"       from "TODO"       [2015-12-31 Thu 16:24]
   - State "DONE"       from "TODO"       [2015-12-30 Wed 20:53]
   :END:      
   :PROPERTIES:
   :STYLE: habit
   :LAST_REPEAT: [2016-01-03 Sun 22:32]
   :END:      

My agenda looks like:

Week-agenda (W01):
Monday      4 January 2016 W01
  orghabits:  Scheduled:  TODO Exercise
Tuesday     5 January 2016
  orghabits:  Scheduled:  TODO Exercise
Wednesday   6 January 2016
  orghabits:  Scheduled:  TODO Exercise
Thursday    7 January 2016
  orghabits:  Scheduled:  TODO Exercise
Friday      8 January 2016
  orghabits:  Scheduled:  TODO Exercise
Saturday    9 January 2016
  orghabits:  Scheduled:  TODO Exercise
Sunday     10 January 2016
  orghabits:  Scheduled:  TODO Exercise

When I looked at this yesterday only the next habit was listed, and was
displayed along with its consistency graph, which is what I expect to
happen.

"Habit" is listed in the modeline, and pressing 'K' brings up a message
that habits have been turned off, but no other change. Pressing 'K'
repeatedly turns habits on and off, but the agenda itself doesn't
change. 

How did I break this?

Emacs version:
GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.5) of
2015-12-24

Org mode version:
Org-mode version 8.3.2 (8.3.2-59-g3d4c46-elpaplus @
/home/tws/.emacs.d/elpa/org-plus-contrib-20160104/)

Best,

Tyler
-- 
plantarum.ca

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

* Re: habits not working
  2016-01-04 14:49 habits not working Tyler Smith
@ 2016-01-04 14:59 ` Dave Marquardt
  2016-01-04 16:04   ` Tyler Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Marquardt @ 2016-01-04 14:59 UTC (permalink / raw)
  To: emacs-orgmode

Tyler Smith <tyler@plantarum.ca> writes:

> Habits don't seem to be working for me anymore, and I'm not sure why.

> How did I break this?
>
> Emacs version:
> GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.5) of
> 2015-12-24
>
> Org mode version:
> Org-mode version 8.3.2 (8.3.2-59-g3d4c46-elpaplus @
> /home/tws/.emacs.d/elpa/org-plus-contrib-20160104/)

Did you happen to update org-mode recently? There was a change around
the 8.3 timeframe about where you could put properties. See
http://orgmode.org/Changes.html

-Dave

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

* Re: habits not working
  2016-01-04 14:59 ` Dave Marquardt
@ 2016-01-04 16:04   ` Tyler Smith
  0 siblings, 0 replies; 3+ messages in thread
From: Tyler Smith @ 2016-01-04 16:04 UTC (permalink / raw)
  To: emacs-orgmode

On Mon, Jan 4, 2016, at 09:59 AM, Dave Marquardt wrote:
> Tyler Smith <tyler@plantarum.ca> writes:
> 
> > Habits don't seem to be working for me anymore, and I'm not sure why.
> 
> > How did I break this?
> >
> > Emacs version:
> > GNU Emacs 25.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.5) of
> > 2015-12-24
> >
> > Org mode version:
> > Org-mode version 8.3.2 (8.3.2-59-g3d4c46-elpaplus @
> > /home/tws/.emacs.d/elpa/org-plus-contrib-20160104/)
> 
> Did you happen to update org-mode recently? There was a change around
> the 8.3 timeframe about where you could put properties. See
> http://orgmode.org/Changes.html
> 

That was it, thanks. Following the change, the format must be:

* TODO Headline
  SCHEDULED: <date>
  :PROPERTIES:
  :style: habit:
  ...
  :END:
  :LOGBOOK:
  ...

I got thrown off because I store my past 'completions' in a :LOGBOOK:
drawer which was placed before the :PROPERTIES: drawer, which used to be
ok.

Best,

Tyler

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

end of thread, other threads:[~2016-01-04 16:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-01-04 14:49 habits not working Tyler Smith
2016-01-04 14:59 ` Dave Marquardt
2016-01-04 16:04   ` Tyler Smith

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