From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce V Chiarelli Subject: Prepended list item captures get placed among LOGBOOK entries Date: Thu, 08 Jun 2017 12:45:28 -0700 Message-ID: <87r2yu5kmf.fsf@topd0g> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJ3N9-0000pu-Cc for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 15:45:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJ3N6-0003lw-8v for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 15:45:35 -0400 Received: from mail-pg0-x236.google.com ([2607:f8b0:400e:c05::236]:34215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dJ3N6-0003k1-3N for emacs-orgmode@gnu.org; Thu, 08 Jun 2017 15:45:32 -0400 Received: by mail-pg0-x236.google.com with SMTP id v18so19194917pgb.1 for ; Thu, 08 Jun 2017 12:45:30 -0700 (PDT) Received: from topd0g (c-73-118-158-137.hsd1.wa.comcast.net. [73.118.158.137]) by smtp.gmail.com with ESMTPSA id r69sm11031331pfj.42.2017.06.08.12.45.28 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Jun 2017 12:45:28 -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" To: org-mode-email Hello, I'll explain the problem with this example: ---- * Run this in =emacs -Q= with the latest org #+BEGIN_SRC emacs-lisp ;(add-to-list 'load-path "~/build/org-mode/lisp") ;;; ensure we are using the latest Org (setq org-capture-templates (quote (("x" "Testing" item (file+headline "~/org/Testing.org" "Test headline") "- %U Thoughts:" :prepend t)))) (setq org-log-into-drawer t) #+END_SRC * TODO Test headline SCHEDULED: <2017-06-09 Fri +1d> :PROPERTIES: :LAST_REPEAT: [2017-06-08 Thu 12:11] :END: :LOGBOOK: - State "DONE" from "TODO" [2017-06-08 Thu 12:11] :END: - I would expect the capture to go immediately above this line, but it goes in the drawer instead. ---- If I use org-capture with template "x", the entry is placed into the LOGBOOK drawer above the state change line. Of course, if org-log-into-drawer set to nil, there is no good way of keeping the state change list and the capture list separate at all (nor should there be, IMO, as long as org-habit doesn't get confused). But at least with the logbook drawer enabled, the current behavior seems wrong.