Function: org-babel-in-src-block-header-p

org-babel-in-src-block-header-p is a byte-compiled function defined in ob-core.el.gz.

Signature

(org-babel-in-src-block-header-p)

Documentation

Return non-nil when point is in the header line of the source block.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ob-core.el.gz
(defun org-babel-in-src-block-header-p ()
  "Return non-nil when `point' is in the header line of the source block."
  (let ((beg (org-babel-where-is-src-block-head)))
    (when beg
      (let ((end (save-excursion (goto-char beg) (end-of-line) (point))))
        (and (>= (point) beg) (<= (point) end))))))