From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian J Hoskins Subject: Unexpected behaviour from capture-template Date: Mon, 29 Jan 2018 22:56:35 +0000 Message-ID: <271e1b84-4426-cc12-3821-dd52bfb8d423@hoskins.eu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41381) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egILz-0001Yt-8s for emacs-orgmode@gnu.org; Mon, 29 Jan 2018 17:56:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egILw-00040s-6E for emacs-orgmode@gnu.org; Mon, 29 Jan 2018 17:56:43 -0500 Received: from green6190.server-cp.com ([212.48.93.130]:33083) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1egILv-0003xw-V0 for emacs-orgmode@gnu.org; Mon, 29 Jan 2018 17:56:40 -0500 Received: from [192.168.0.25] (cpc78119-cwma10-2-0-cust640.7-3.cable.virginm.net [81.96.50.129]) by green6190.server-cp.com (Postfix) with ESMTPSA id A14BA2147E09 for ; Mon, 29 Jan 2018 22:56:36 +0000 (GMT) In-Reply-To: Content-Language: en-US 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: emacs-orgmode@gnu.org I have set up a capture template as follows (shortened for sake of brevit= y): ("h" "Health" entry (file+datetree "~/health.org") "* %? %^g\n%U\n** SYMPTOMS\n%^{SYMPTOMS}\n%^{SEVERITY}p\n") This capture template (should) do the following according to my understanding: * Make a journal entry * Prompt for tags * Insert an inactive timestamp on a new line * Prompt for symptoms, insert on new line heading 2 * Prompt for severity property, insert on new line * Put the cursor back on the heading 1 line. Everything works except for the property, which for some reason gets inserted above the symptom line, even though it is prompted for last. This is what the capture template looks like after finishing: ---------- * Test Health Journal :HEADACHE: [2018-01-29 Mon 22:52] ** SYMPTOMS :PROPERTIES: :SEVERITY: 2 :END: My symptoms... ---------- Am I doing something wrong or is there a bug here? Many thanks in advance, fellow org-moders! Cheers, Brian.