Ignore inlinetasks in `org-before-first-heading-p'

* lisp/org.el (org-before-first-heading-p): Ignore inlinetasks.
This commit is contained in:
Nicolas Goaziou 2018-06-13 22:20:27 +02:00
parent f50f373389
commit 956a5a4cb1

View file

@ -22941,9 +22941,10 @@ interactive command with similar behavior."
(defun org-before-first-heading-p ()
"Before first heading?"
(save-excursion
(end-of-line)
(null (re-search-backward org-outline-regexp-bol nil t))))
(org-with-limited-levels
(save-excursion
(end-of-line)
(null (re-search-backward org-outline-regexp-bol nil t)))))
(defun org-at-heading-p (&optional ignored)
(outline-on-heading-p t))