Function: org-point-at-end-of-empty-headline

org-point-at-end-of-empty-headline is a byte-compiled function defined in org.el.gz.

Signature

(org-point-at-end-of-empty-headline)

Documentation

If point is at the end of an empty headline, return t, else nil.

If the heading only contains a TODO keyword, it is still considered empty.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-point-at-end-of-empty-headline ()
  "If point is at the end of an empty headline, return t, else nil.
If the heading only contains a TODO keyword, it is still considered
empty."
  (let ((case-fold-search nil))
    (and (looking-at "[ \t]*$")
	 org-todo-line-regexp
	 (save-excursion
	   (beginning-of-line)
	   (looking-at org-todo-line-regexp)
	   (string= (match-string 3) "")))))