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.... dmj...@jabber.org
Email..... dm...@ictsoc.de

Attachment: pgpXYPTSShd5H.pgp
Description: PGP signature

_______________________________________________
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

Reply via email to