emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-clock-report/org-create-dblock breaks drawers with point on headine?
@ 2017-04-25  8:11 Adam Porter
  2017-04-25 11:29 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Porter @ 2017-04-25  8:11 UTC (permalink / raw)
  To: emacs-orgmode

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.

Using Emacs 25.1 with Org 9.0.5.  Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: org-clock-report/org-create-dblock breaks drawers with point on headine?
  2017-04-25  8:11 org-clock-report/org-create-dblock breaks drawers with point on headine? Adam Porter
@ 2017-04-25 11:29 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2017-04-25 11:29 UTC (permalink / raw)
  To: Adam Porter; +Cc: emacs-orgmode

Hello,

Adam Porter <adam@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-25 11:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-25  8:11 org-clock-report/org-create-dblock breaks drawers with point on headine? Adam Porter
2017-04-25 11:29 ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).