emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bruce Gilstrap <bruce@gilstraps.org>
To: emacs-orgmode@gnu.org
Subject: PROPERTIES drawer inserted within LOGBOOK drawer during org-capture
Date: Mon, 20 Jul 2015 14:14:13 -0500	[thread overview]
Message-ID: <CAN_bDiC1LN5kOSYTQBFf34o5ui6E=0mvw2JtiJx9Gu+3tr5cdA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1843 bytes --]

Hello,

I am running org-mode version 8.2.10 in GNU Emacs 24.3.1 on Windows 7
Ultimate (Service Pack 1). When I invoke org-capture while the cursor is on
or "under" a TODO headline that does not have a PROPERTIES drawer, org
inserts a PROPERTIES drawer and an ID key-value pair, like so:

* TODO New headline
:PROPERTIES:
:ID:       b0ee991b-cccb-46cc-8f43-a2341de68e4d
:END:

When the LOGBOOK contains a note after a clock entry, however, org inserts
the PROPERTIES drawer inside the existing LOGBOOK drawer, like so:

* TODO The LOGBOOK contains one complete clock entry and note after clock
entry
:LOGBOOK:
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:PROPERTIES:
:ID:       e1cefdae-a34d-4ba1-bb80-7f05cd541605
:END:
- Note taken on [2015-07-20 Mon 13:16] \\
  a note
:END:

This behavior does not happen when:

* TODO There is no LOGBOOK drawer
:PROPERTIES:
:ID:       ebb1a5f2-0546-48aa-b18b-6d00fde03fcf
:END:

* TODO The LOGBOOK is empty
:LOGBOOK:
:END:
:PROPERTIES:
:ID:       c51f2f0a-0fe2-4182-9bc1-72ed5085070f
:END:

* TODO The LOGBOOK contains only note
:LOGBOOK:
- Note taken on [2015-07-20 Mon 13:13] \\
  a note
:END:
:PROPERTIES:
:ID:       5954a100-1da5-47f0-a73c-456b29024590
:END:

* TODO The LOGBOOK note precedes a clock entry
:LOGBOOK:
- Note taken on [2015-07-20 Mon 13:14] \\
  a note
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:END:
:PROPERTIES:
:ID:       d8682ba6-5233-4c94-b2bc-2a90c287f980
:END:

* TODO The LOGBOOK contains a note between two clock entries
:LOGBOOK:
CLOCK: [2015-07-20 Mon 13:30]--[2015-07-20 Mon 13:42] =>  0:12
- Note taken on [2015-07-20 Mon 13:22] \\
  a note
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 Mon 09:03] =>  0:07
:END:
:PROPERTIES:
:ID:       4c3b7ef5-5d0a-4de5-965c-2b8d46524931
:END:


Has anyone seen this behavior before?

Thanks,
Bruce

[-- Attachment #2: Type: text/html, Size: 2673 bytes --]

             reply	other threads:[~2015-07-20 19:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-20 19:14 Bruce Gilstrap [this message]
2015-07-20 21:07 ` PROPERTIES drawer inserted within LOGBOOK drawer during org-capture Nicolas Goaziou
2015-07-23 19:10   ` Bruce Gilstrap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN_bDiC1LN5kOSYTQBFf34o5ui6E=0mvw2JtiJx9Gu+3tr5cdA@mail.gmail.com' \
    --to=bruce@gilstraps.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).