>From 20ead737aebc9c46aa291b5a70248c57f3fd64a1 Mon Sep 17 00:00:00 2001 From: Matt Lundin Date: Sat, 9 Sep 2017 11:08:06 -0500 Subject: [PATCH] Ensure that top-level capture targets are pasted at level 1 * lisp/org-capture.el: (org-capture-place-entry) Ensure that level is set to 1 (i.e., the top level) if there is no headline target defined. Otherwise, captured items are improperly nested by context. --- lisp/org-capture.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-capture.el b/lisp/org-capture.el index cd1944d96..2ddb9c505 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -1097,7 +1097,7 @@ may have been stored before." (defun org-capture-place-entry () "Place the template as a new Org entry." (let ((reversed? (org-capture-get :prepend)) - level) + (level 1)) (when (org-capture-get :exact-position) (goto-char (org-capture-get :exact-position))) (cond -- 2.14.1