Hello,

Adam Porter <a...@alphapapa.net> writes:

> I feel like I must be missing something obvious, but doesn't
> org-clock-report, which calls org-create-dblock, break drawers and
> planning lines when it's called with point on a heading?  It inserts the
> clocktable above the existing drawers and planning line, making them
> invalid.

That's true, but so does `org-insert-drawer', for example. 

I'm not a big fan of preventing users from shooting them on the foot.
Nevertheless, there are three possibilities to consider:

1. insert the dynamic block (or the drawer) at point, or below if it
   would break planning line or property drawer;

2. raise an error when we try to insert it where it would break planning
   line or property drawer;

3. insert it at point. Let the user sort it out as they know better than
   us what they want.

Option 3 is already implemented (or is it a non-implementation?).

Regards,

-- 
Nicolas Goaziou

Reply via email to