forked from mirrors/org-mode
org-capture: Remove unnecessary checks
* lisp/org-capture.el (org-capture-place-plain-text): Remove unnecessary checks.
This commit is contained in:
parent
c76486d4e4
commit
b46d4e7b1c
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue