[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keywo
From: |
David Maus |
Subject: |
Re: [Orgmode] Re: Force completed habits to revert to "HABIT" todo keyword instead of "TODO" |
Date: |
Tue, 09 Nov 2010 21:58:25 +0100 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.8 Emacs/23.2 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
At Wed, 10 Nov 2010 04:37:43 +0800,
Joseph Buchignani wrote:
>
> Hi Matt,
>
> Thanks for your very helpful reply.
>
> I know this is a noob question, so please forgive me for taxing your
> patience...
>
> How do I evaluate the statement you supplied for just one file? E.g. I
> want to evaluate your statement for notes.org, what do I do?
Örm, well: The original function would not reset the todo state
change, but set the REPEAT_TO_STATE property (i.e.: org-set-property).
To use the (right) org-map-entries function interactively, just define
a interactive function:
(defun hb:set-habit-keyword ()
"*Set keyword of habits in current buffer."
(interactive)
(org-map-entries
'(org-todo (org-entry-get nil "REPEAT_TO_STATE"))
"STYLE=\"HABIT\""))
And call it with M-x hb:set-habit-keyword.
HTH,
-- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... address@hidden
Email..... address@hidden
pgpkLr3LS_ZVw.pgp
Description: PGP signature