emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bruce V Chiarelli <mano155@gmail.com>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Prepended list item captures get placed among LOGBOOK entries
Date: Thu, 08 Jun 2017 12:45:28 -0700	[thread overview]
Message-ID: <87r2yu5kmf.fsf@topd0g> (raw)

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.

                 reply	other threads:[~2017-06-08 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=87r2yu5kmf.fsf@topd0g \
    --to=mano155@gmail.com \
    --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).