Re: [O] Org-mode Habit with Varying Description

2014-10-29 Thread Nicolas Goaziou
Eric Abrahamsen writes: > Okay, thanks. Since this is part of a function, I guess I should assume > the (progn... behavior above, assume `org-element-at-point' is going to > return a paragraph, and then work up from there to see if I'm in a > log-list. Is that right? That's the idea, yes. Rega

Re: [O] Org-mode Habit with Varying Description

2014-10-28 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Eric Abrahamsen writes: > >> I was just fooling with this a bit, and am noticing some odd (to me) >> behavior. If I start with emacs -Q, then (goto-char (org-log-beginning)) >> takes me to the start of a :LOGBOOK: drawer, and (org-element-at-point) >> returns the drawer

Re: [O] Org-mode Habit with Varying Description

2014-10-28 Thread Nicolas Goaziou
Eric Abrahamsen writes: > I was just fooling with this a bit, and am noticing some odd (to me) > behavior. If I start with emacs -Q, then (goto-char (org-log-beginning)) > takes me to the start of a :LOGBOOK: drawer, and (org-element-at-point) > returns the drawer. That works no matter whether th

Re: [O] Org-mode Habit with Varying Description

2014-10-28 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> Right now it looks like the central "cond" statement in >> `org-add-log-setup' is as close as we've got to a canonical definition >> of where a heading's log list is to be found. Should I just write my own >> version of this, or w

Re: [O] Org-mode Habit with Varying Description

2014-10-28 Thread Eric Abrahamsen
Nicolas Goaziou writes: > Hello, > > Eric Abrahamsen writes: > >> Right now it looks like the central "cond" statement in >> `org-add-log-setup' is as close as we've got to a canonical definition >> of where a heading's log list is to be found. Should I just write my own >> version of this, or w

Re: [O] Org-mode Habit with Varying Description

2014-10-28 Thread Nicolas Goaziou
Hello, Eric Abrahamsen writes: > Right now it looks like the central "cond" statement in > `org-add-log-setup' is as close as we've got to a canonical definition > of where a heading's log list is to be found. Should I just write my own > version of this, or would you be open to refactoring `org

Re: [O] Org-mode Habit with Varying Description

2014-10-26 Thread Eric Abrahamsen
Pete Ley writes: >> All I've got now are a function that finds the logbook, and another that >> parses the log items and normalizes them: extracts the TODO >> states/timestamps/key-values and sets them as properties on the items >> themselves. Then you've got a pretty good basis from which to do

Re: [O] Org-mode Habit with Varying Description

2014-10-23 Thread Pete Ley
> All I've got now are a function that finds the logbook, and another that > parses the log items and normalizes them: extracts the TODO > states/timestamps/key-values and sets them as properties on the items > themselves. Then you've got a pretty good basis from which to do > reporting. > > Hookin

Re: [O] Org-mode Habit with Varying Description

2014-10-21 Thread Eric Abrahamsen
Samuel Loury writes: > Hi, > Eric Abrahamsen writes: > >> I've been (very gradually) working on something I'm calling org-log, for >> just this sort of situation -- a library that would possibly go >> underneath org-habit and maybe even org-clock. It would look like: >> >> * Read >> :LOGBOOK:

Re: [O] Org-mode Habit with Varying Description

2014-10-21 Thread Michael Brand
Hi Daya On Mon, Oct 20, 2014 at 4:33 PM, Daya Atapattu wrote: > I like to schedule studying a book: It would be scheduled as "Read pages > 100-125." Then the next day it should read "Read pages 126-150." The > description of the habit varies; org-mode picks that up sequentially from a > list.

Re: [O] Org-mode Habit with Varying Description

2014-10-21 Thread Samuel Loury
Hi, Eric Abrahamsen writes: > I've been (very gradually) working on something I'm calling org-log, for > just this sort of situation -- a library that would possibly go > underneath org-habit and maybe even org-clock. It would look like: > > * Read > :LOGBOOK: > - Note taken on [2014-10-20 M

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Eric Abrahamsen
Pete Ley writes: > As Bastien said, this doesn't really fit the idea of a habit, but I > think there is a reasonable non-elisp way of tweaking it to fit. Maybe > it would help. > > What if you had something like this: > > * Read > :LOGBOOK: > - Note taken on [2014-10-20 Mon 10:33] \\ > 1

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Brady Trainor
Daya Atapattu writes: > Is there a way to create a habit that picks-up the description from a > list? > > I like to schedule studying a book: It would be scheduled as "Read > pages 100-125." Then the next day it should read "Read pages 126-150." > The description of the habit varies; org-mode pic

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Melleus
Why don't you set your habit as a "read 25 pages" and use a piece of paper or some card as a bookmark to remember where you finished? E-book readers provide the functionality of remembering where you stopped last time as I know. The title of the book is written on the book itself and e-book readers

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Pete Ley
As Bastien said, this doesn't really fit the idea of a habit, but I think there is a reasonable non-elisp way of tweaking it to fit. Maybe it would help. What if you had something like this: * Read :LOGBOOK: - Note taken on [2014-10-20 Mon 10:33] \\ 151-300 - Note taken on [2014-10-20

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Jorge A. Alfaro-Murillo
Daya Atapattu writes: Is there a way to create a habit that picks-up the description from a list? I like to schedule studying a book: It would be scheduled as "Read pages 100-125." Then the next day it should read "Read pages 126-150." The description of the habit varies; org-mode picks th

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Daya Atapattu
Thanks for the response, Bastien. I guess, short of writing some elisp code, I will have to reschedule each evening for next day.I can't schedule in advance, because I miss some days. - Daya On Mon, Oct 20, 2014 at 10:52 AM, Bastien wrote: > Hi Daya, > > Daya Atapattu writes: > > > Is th

Re: [O] Org-mode Habit with Varying Description

2014-10-20 Thread Bastien
Hi Daya, Daya Atapattu writes: > Is there a way to create a habit that picks-up the description from a > list? > > I like to schedule studying a book:  It would be scheduled as "Read > pages 100-125."  Then the next day it should read "Read pages > 126-150."  The description of the habit varies;

[O] Org-mode Habit with Varying Description

2014-10-20 Thread Daya Atapattu
Is there a way to create a habit that picks-up the description from a list? I like to schedule studying a book: It would be scheduled as "Read pages 100-125." Then the next day it should read "Read pages 126-150." The description of the habit varies; org-mode picks that up sequentially from a l