From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Gilstrap Subject: PROPERTIES drawer inserted within LOGBOOK drawer during org-capture Date: Mon, 20 Jul 2015 14:14:13 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f839739d6bd81051b5357cf Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHGW1-0006lm-Tf for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 15:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHGVz-0003Ny-1F for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 15:14:17 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:33745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHGVy-0003Mm-P3 for emacs-orgmode@gnu.org; Mon, 20 Jul 2015 15:14:14 -0400 Received: by wgmn9 with SMTP id n9so138245849wgm.0 for ; Mon, 20 Jul 2015 12:14:13 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --e89a8f839739d6bd81051b5357cf Content-Type: text/plain; charset=UTF-8 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 --e89a8f839739d6bd81051b5357cf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 TO= DO headline that does not have a PROPERTIES drawer, org inserts a PROPERTIE= S drawer and an ID key-value pair, like so:

* TODO= New headline
:PROPERTIES:
:ID: =C2=A0 =C2=A0 =C2=A0 b0= ee991b-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] =3D> =C2=A00:07
:PROPERTIE= S:
:ID: =C2=A0 =C2=A0 =C2=A0 e1cefdae-a34d-4ba1-bb80-7f05cd541605=
:END:
- Note taken on [2015-07-20 Mon 13:16] \\
<= div>=C2=A0 a note
:END:

This behavior do= es not happen when:

* TODO There is no LOGBOOK dra= wer
:PROPERTIES:
:ID: =C2=A0 =C2=A0 =C2=A0 ebb1a5f2-054= 6-48aa-b18b-6d00fde03fcf
:END:

* TODO Th= e LOGBOOK is empty
:LOGBOOK:
:END:
:PROPERTIE= S:
:ID: =C2=A0 =C2=A0 =C2=A0 c51f2f0a-0fe2-4182-9bc1-72ed5085070f=
:END:

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

* TODO The LOGBOOK note precedes a clock entry=
:LOGBOOK:
- Note taken on [2015-07-20 Mon 13:14] \\
=C2=A0 a note
CLOCK: [2015-07-20 Mon 08:56]--[2015-07-20 = Mon 09:03] =3D> =C2=A00:07
:END:
:PROPERTIES:
<= div>:ID: =C2=A0 =C2=A0 =C2=A0 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] =3D> =C2=A00:12
- Note taken on [2= 015-07-20 Mon 13:22] \\
=C2=A0 a note
CLOCK: [2015-07-2= 0 Mon 08:56]--[2015-07-20 Mon 09:03] =3D> =C2=A00:07
:END:
:PROPERTIES:
:ID: =C2=A0 =C2=A0 =C2=A0 4c3b7ef5-5d0a-4de5-= 965c-2b8d46524931
:END:


H= as anyone seen this behavior before?

Thanks,
=
Bruce
--e89a8f839739d6bd81051b5357cf--