Function: org-at-planning-p

org-at-planning-p is a byte-compiled function defined in org.el.gz.

Signature

(org-at-planning-p)

Documentation

Non-nil when point is on a planning info line.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defvar org-end-time-was-given) ; dynamically scoped parameter

(defun org-at-planning-p ()
  "Non-nil when point is on a planning info line."
  ;; This is as accurate and faster than `org-element-at-point' since
  ;; planning info location is fixed in the section.
  (or (let ((cached (org-element-at-point nil 'cached)))
        (and cached (org-element-type-p cached 'planning)))
      (org-with-wide-buffer
       (forward-line 0)
       (and (looking-at-p org-planning-line-re)
	    (eq (point)
                (ignore-errors
                  (if (and (featurep 'org-inlinetask) (org-inlinetask-in-task-p))
		      (org-back-to-heading t)
		    (org-with-limited-levels (org-back-to-heading t)))
                  (line-beginning-position 2)))))))