diff options
author | Matt Lundin <mdl@imapmail.org> | 2017-09-09 11:08:06 -0500 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2017-09-10 09:39:24 +0200 |
commit | 2dfbafa4a9159f30e2e2b68bdf4193719cc371e9 (patch) | |
tree | 0a0f3c8d805173e6b814f18039ad1bda661cb530 | |
parent | e0259f93747d1f08f65889fbcdd0e3dab7817ac9 (diff) | |
download | org-mode-2dfbafa4a9159f30e2e2b68bdf4193719cc371e9.tar.gz |
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.
-rw-r--r-- | lisp/org-capture.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el index cd1944d..2ddb9c5 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 |