Function: org-at-property-drawer-p

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

Signature

(org-at-property-drawer-p)

Documentation

Non-nil when point is at the first line of a property drawer.

Aliases

org-at-property-block-p (obsolete since 9.4)

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-at-property-drawer-p ()
  "Non-nil when point is at the first line of a property drawer."
  (org-with-wide-buffer
   (forward-line 0)
   (and (looking-at org-property-drawer-re)
	(or (bobp)
	    (progn
	      (forward-line -1)
	      (cond ((org-at-heading-p))
		    ((looking-at org-planning-line-re)
		     (forward-line -1)
		     (org-at-heading-p))
		    ((looking-at org-comment-regexp)
		     (forward-line -1)
		     (while (and (not (bobp)) (looking-at org-comment-regexp))
		       (forward-line -1))
		     (looking-at org-comment-regexp))
		    (t nil)))))))