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.... dmjena@jabber.org Email..... dmaus@ictsoc.de