[Orgmode] Re: cannot enable org-habit

2010-09-04 Thread Bastien
Hi Joseph,

Joseph Buchignani joseph.buchign...@gmail.com writes:

 Thanks Julien. Bastien, here is my update to this section of the org-mode
 manual. I'm not sure how one goes about submitting an update, hope this will
 do.

Thanks for your update.  Can you submit it as a patch?

Are you using git?

If so, just create a new branch (e.g. git branch org-habit-update), 
edit the Tracking habit section of the manual, commit your changes, 
then prepare a patch to send to the list (using git-format-patch).

If you need further directions, this process is documented here:

  http://orgmode.org/worg/worg-git-advanced.php#sec-2

Thanks in advance, that would help a lot.

-- 
 Bastien

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-03 Thread Julien Fantin
Joseph, it's already all here, but for the sake of clarity :

;; Enable state logging enable for the TODO state i.e. the ! part
 (setq org-todo-keywords
   (quote
((sequence TODO(t!) NEXT(n!) | DONE(d!))
 (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

;; Add it to the list of modules
(add-to-list 'org-modules 'org-habit)

;; And finally require it
(require 'org-habit)

Happy habit monitoring :)
Cheers

On Thu, Sep 2, 2010 at 8:04 PM, Joseph Buchignani
joseph.buchign...@gmail.com wrote:
 Julien, it sounds like you're doing something different than what's in the
 manual.

 Could you paste exactly the code you used in your .emacs to include
 org-habit in the modules list and then activate it? I guess it would be two
 separate lines?

 Thanks,
 JB

 On Fri, Sep 3, 2010 at 1:26 AM, Julien Fantin julien.fan...@gmail.com
 wrote:

 Thanks Noorul, this helped me fix the error, and I now have it working !
 I should mention that I do need to (require 'org-habit) after it's
 been added to the modules list, in order to actually activate it.



 On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam noo...@noorul.com wrote:
  On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com
  wrote:
  I'm watching this as I wasn't able to enable this module either.
 
  I have state logging enable with :
    (setq org-todo-keywords
          (quote
           ((sequence TODO(t!) NEXT(n!) | DONE(d!))
            (sequence WAIT(w@/!) SOMEDAY(s@/!) |
  CANCELLED(c@/!)
 
  And org-habit is configured with :
   (add-to-list 'org-modules 'org-habit)
 
  Which doesn't seems to work either...
 
  If I try o (require 'org-habit) though, I'll get an error when
  building the agenda with C-c a a :
  org-habit-duration-to-days: Wrong type argument: stringp, nil
 
 
  If you pull the latest version from git repo, you won't get this
  error, instead a meaningful error message will be displayed.
 
  Thanks and Regards
  Noorul
 



 --
 Ignore the following. It is a nonsense sentence that disables Google ads
 from displaying next to my emails by triggering sensitive keywords.

 I enjoy the massacre of ads. This sentence will slaughter ads without a
 messy bloodbath.


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Noorul Islam K M
Paul Sexton psex...@xnet.co.nz writes:

 Joseph Buchignani joseph.buchignani at gmail.com writes:

 Yes, here is how it looks:
 ...

 Hi Joseph
 The following item has been working fine for me. However I can't see any 
 glaring 
 differences wrt to your example item.


 ** TODO Add MCQs
SCHEDULED: 2010-09-03 Fri .+1d/4d
- State DONE   from TODO   [2010-09-02 Thu 07:51]
- State DONE   from TODO   [2010-08-25 Wed 15:52]
   :PROPERTIES:
   :STYLE: habit
   :LAST_REPEAT: [2010-09-02 Thu 07:51]
   :END:


 Rather than use 'modules' I just have
 (require 'org-habit)
 in my .emacs -- maybe that is worth trying.


For me, Joseph's example works if I use (require 'org-habit). I have not
tried with modules

Thanks and Regards
Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Noorul Islam
On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com wrote:
 I'm watching this as I wasn't able to enable this module either.

 I have state logging enable with :
   (setq org-todo-keywords
         (quote
          ((sequence TODO(t!) NEXT(n!) | DONE(d!))
           (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

 And org-habit is configured with :
  (add-to-list 'org-modules 'org-habit)

 Which doesn't seems to work either...

 If I try o (require 'org-habit) though, I'll get an error when
 building the agenda with C-c a a :
 org-habit-duration-to-days: Wrong type argument: stringp, nil


If you pull the latest version from git repo, you won't get this
error, instead a meaningful error message will be displayed.

Thanks and Regards
Noorul

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Julien Fantin
Thanks Noorul, this helped me fix the error, and I now have it working !
I should mention that I do need to (require 'org-habit) after it's
been added to the modules list, in order to actually activate it.



On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam noo...@noorul.com wrote:
 On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com wrote:
 I'm watching this as I wasn't able to enable this module either.

 I have state logging enable with :
   (setq org-todo-keywords
         (quote
          ((sequence TODO(t!) NEXT(n!) | DONE(d!))
           (sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@/!)

 And org-habit is configured with :
  (add-to-list 'org-modules 'org-habit)

 Which doesn't seems to work either...

 If I try o (require 'org-habit) though, I'll get an error when
 building the agenda with C-c a a :
 org-habit-duration-to-days: Wrong type argument: stringp, nil


 If you pull the latest version from git repo, you won't get this
 error, instead a meaningful error message will be displayed.

 Thanks and Regards
 Noorul


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-02 Thread Joseph Buchignani
Julien, it sounds like you're doing something different than what's in the
manual.

Could you paste exactly the code you used in your .emacs to include
org-habit in the modules list and then activate it? I guess it would be two
separate lines?

Thanks,
JB

On Fri, Sep 3, 2010 at 1:26 AM, Julien Fantin julien.fan...@gmail.comwrote:

 Thanks Noorul, this helped me fix the error, and I now have it working !
 I should mention that I do need to (require 'org-habit) after it's
 been added to the modules list, in order to actually activate it.



 On Thu, Sep 2, 2010 at 7:17 PM, Noorul Islam noo...@noorul.com wrote:
  On Thursday, September 2, 2010, Julien Fantin julien.fan...@gmail.com
 wrote:
  I'm watching this as I wasn't able to enable this module either.
 
  I have state logging enable with :
(setq org-todo-keywords
  (quote
   ((sequence TODO(t!) NEXT(n!) | DONE(d!))
(sequence WAIT(w@/!) SOMEDAY(s@/!) | CANCELLED(c@
 /!)
 
  And org-habit is configured with :
   (add-to-list 'org-modules 'org-habit)
 
  Which doesn't seems to work either...
 
  If I try o (require 'org-habit) though, I'll get an error when
  building the agenda with C-c a a :
  org-habit-duration-to-days: Wrong type argument: stringp, nil
 
 
  If you pull the latest version from git repo, you won't get this
  error, instead a meaningful error message will be displayed.
 
  Thanks and Regards
  Noorul
 




-- 
Ignore the following. It is a nonsense sentence that disables Google ads
from displaying next to my emails by triggering sensitive keywords.

I enjoy the massacre of ads. This sentence will slaughter ads without a
messy bloodbath.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: cannot enable org-habit

2010-09-01 Thread Paul Sexton
Joseph Buchignani joseph.buchignani at gmail.com writes:

 Yes, here is how it looks:
...

Hi Joseph
The following item has been working fine for me. However I can't see any 
glaring 
differences wrt to your example item.


** TODO Add MCQs
   SCHEDULED: 2010-09-03 Fri .+1d/4d
   - State DONE   from TODO   [2010-09-02 Thu 07:51]
   - State DONE   from TODO   [2010-08-25 Wed 15:52]
  :PROPERTIES:
  :STYLE: habit
  :LAST_REPEAT: [2010-09-02 Thu 07:51]
  :END:


Rather than use 'modules' I just have
(require 'org-habit)
in my .emacs -- maybe that is worth trying.

Paul



___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode