Function: org-in-clocktable-p

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

Signature

(org-in-clocktable-p)

Documentation

Check if the cursor is in a clocktable.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org.el.gz
;;;; Miscellaneous stuff

;;; Generally useful functions

(defun org-in-clocktable-p ()
  "Check if the cursor is in a clocktable."
  (let ((pos (point)) start)
    (save-excursion
      (end-of-line 1)
      (and (re-search-backward "^[ \t]*#\\+BEGIN:[ \t]+clocktable" nil t)
	   (setq start (match-beginning 0))
	   (re-search-forward "^[ \t]*#\\+END:.*" nil t)
	   (>= (match-end 0) pos)
	   start))))