Function: org-command-at-point

org-command-at-point is a byte-compiled function defined in org-pcomplete.el.gz.

Signature

(org-command-at-point)

Documentation

Return the qualified name of the Org completion entity at point.

When completing for #+STARTUP, for example, this function returns
"file-option/startup".

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-pcomplete.el.gz
;;; Completion API

(defun org-command-at-point ()
  "Return the qualified name of the Org completion entity at point.
When completing for #+STARTUP, for example, this function returns
\"file-option/startup\"."
  (let ((thing (org-thing-at-point)))
    (cond
     ((string= "file-option" (car thing))
      (concat (car thing)
	      (and (cdr thing) (concat "/" (downcase (cdr thing))))))
     ((string= "block-option" (car thing))
      (concat (car thing) "/" (downcase (cdr thing))))
     (t (car thing)))))