summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-10-23 01:46:57 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-10-23 01:46:57 +0200
commitb46d4e7b1c1245fbe0c52531e18a566c6eb2e45d (patch)
treea1f8f4833b9ca0281694a008cffa7f55582e7dfa
parentc76486d4e431bf0c67d371341eb28445e7de4517 (diff)
downloadorg-mode-b46d4e7b1c1245fbe0c52531e18a566c6eb2e45d.tar.gz
org-capture: Remove unnecessary checks
* lisp/org-capture.el (org-capture-place-plain-text): Remove unnecessary checks.
-rw-r--r--lisp/org-capture.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/org-capture.el b/lisp/org-capture.el
index ff80808..c4d5d1c 100644
--- a/lisp/org-capture.el
+++ b/lisp/org-capture.el
@@ -1296,14 +1296,12 @@ Of course, if exact position has been required, just put it there."
(cond
((org-capture-get :exact-position)
(goto-char (org-capture-get :exact-position)))
- ((and (org-capture-get :target-entry-p)
- (bolp)
- (looking-at org-outline-regexp))
+ ((org-capture-get :target-entry-p)
;; Place the text into this entry.
(if (org-capture-get :prepend)
;; Skip meta data and drawers.
(org-end-of-meta-data t)
- ;; Go to end of the entry text, before the next headline
+ ;; Go to end of the entry text, before the next headline.
(outline-next-heading)))
(t
;; Beginning or end of file.