Karl Voit <devn...@karl-voit.at> wrote: > Hi! > > I tend to keep events that I do not attend in my calendar for > archiving reasons. But I switch their status to CANCELED. > Unfortunately, those events still appear on my Google calendar and > so forth. I get my usual reminders and it messes up my free/busy > list. > > Therefore, I am thinking that canceled events should turn their > active time-stamps into inactive with an Org-mode option. This way, > I can recall them in my agenda by typing ']' (show inactive > time-stamps) but they do not interfere with my daily workflow. > > What do you think of such an option for Org-mode? >
You can probably accomplish this with org-after-todo-state-change-hook: Write a function that checks if org-state is "CANCELED", and if so looks for active timestamps and calls org-toggle-timestamp-type on them. Then add the function to the hook. And don't forget to post the code here as well as on Worg :-) Nick