Function: org-src-coderef-format

org-src-coderef-format is a byte-compiled function defined in org-src.el.gz.

Signature

(org-src-coderef-format &optional ELEMENT)

Documentation

Return format string for block at point.

When optional argument ELEMENT is provided, use that block. Otherwise, assume point is either at a source block, at an example block.

If point is in an edit buffer, retrieve format string associated to the remote source block.

Source Code

;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-src-coderef-format (&optional element)
  "Return format string for block at point.

When optional argument ELEMENT is provided, use that block.
Otherwise, assume point is either at a source block, at an
example block.

If point is in an edit buffer, retrieve format string associated
to the remote source block."
  (cond
   ((and element (org-element-property :label-fmt element)))
   ((org-src-edit-buffer-p) (org-src-do-at-code-block (org-src-coderef-format)))
   ((org-element-property :label-fmt (org-element-at-point)))
   (t org-coderef-label-format)))