Ihor Radchenko writes: > Jack Kamm writes: > >>> The API of `org-datetree--find-create' is generally very limiting. >>> It would be nice to come up with something less limiting. >> >> Thanks for the feedback -- I'll start working on something along these >> lines. Though this might take me a little while since the holiday is >> ending soon :''-( > > Maybe the holiday is just beginning this year? Bumping this thread just > in case ;) I attach a pair of patches for this. The first patch is just a prelude, it adds a couple unit tests for bugs I noticed in the current implementation. The second patch is the main work. It is a substantial reworking of org-datetree.el that allows for arbitrary number of datetree levels. For capture datetrees, :tree-type can now be any subset of (year quarter month week day), and a datetree with the corresponding levels will be constructed. Another notable addition is the elisp function `org-datetree-find-create-hierarchy', which should allow constructing general datetrees for other calendar systems (e.g. lunar calendars, university academic calendars, retail 4-4-5 calendars, etc).