Michaël Cadilhac <mich...@cadilhac.name> writes: >> > Perhaps we could have an option ox-icalendar-export-todo-keywords-as >> > which could determine whether a keyword should be exported, and if so >> > with what status, e.g.: >> > >> > (defcustom ox-icalendar-export-todo-keywords-as >> > '((no-export . ("SKIP")) >> > (cancelled . ("KILLED" "CANCELLED")) >> > (in-process . ("PROG")))) > ... >> Maybe we can expand the allowed values of `org-icalendar-include-todo' >> instead? > > I don't think this is the purpose of `include-todo', which seems to be > specific to VTODO vs VEVENT. Do you have something in mind that > combines that feature with STATUS?
You are right that `org-icalendar-include-todo' is only affecting VTODO, but not VEVENT. My concern is mostly that "(no-export . ("SKIP"))" is somewhat similar to `org-icalendar-include-todo' set to a list of todo keywords. So, it may be confused with VTODO-specific option. Another concern is that we already have `org-export-with-tasks' where you can specify which todo keywords should be exported and which headings should be exported, according to their todo keyword. So, "no-export" appears to unnecessary. What is unique to icalendar exporter is the STATUS property. Having a setting to set it according to todo keyword would indeed make sense. However, after I looked at the RFC in more details now, I can see that the values of STATUS property depend on the entry type: statvalue-event = "TENTATIVE" ;Indicates event is tentative. / "CONFIRMED" ;Indicates event is definite. / "CANCELLED" ;Indicates event was cancelled. ;Status values for a "VEVENT" statvalue-todo = "NEEDS-ACTION" ;Indicates to-do needs action. / "COMPLETED" ;Indicates to-do completed. / "IN-PROCESS" ;Indicates to-do in process of. / "CANCELLED" ;Indicates to-do was cancelled. ;Status values for "VTODO". statvalue-jour = "DRAFT" ;Indicates journal is draft. / "FINAL" ;Indicates journal is final. / "CANCELLED" ;Indicates journal is removed. ;Status values for "VJOURNAL". Maybe we can introduce separate variables mapping todo keyword to status depending on the entry type (VTODO vs. VEVENT; we do not export VJOURNAL)? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>