[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-clock-report/org-create-dblock breaks drawers with point on
From: |
Nicolas Goaziou |
Subject: |
Re: [O] org-clock-report/org-create-dblock breaks drawers with point on headine? |
Date: |
Tue, 25 Apr 2017 13:29:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Hello,
Adam Porter <address@hidden> 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