Function: org-export-table-cell-address
org-export-table-cell-address is a byte-compiled function defined in
ox.el.gz.
Signature
(org-export-table-cell-address TABLE-CELL INFO)
Documentation
Return address of a regular TABLE-CELL object.
TABLE-CELL is the cell considered. INFO is a plist used as a communication channel.
Address is a CONS cell (ROW . COLUMN), where ROW and COLUMN are zero-based index. Only exportable cells are considered. The function returns nil for other cells.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-table-cell-address (table-cell info)
"Return address of a regular TABLE-CELL object.
TABLE-CELL is the cell considered. INFO is a plist used as
a communication channel.
Address is a CONS cell (ROW . COLUMN), where ROW and COLUMN are
zero-based index. Only exportable cells are considered. The
function returns nil for other cells."
(let* ((table-row (org-element-parent table-cell))
(row-number (org-export-table-row-number table-row info)))
(when row-number
(cons row-number
(let ((col-count 0))
(org-element-map table-row 'table-cell
(lambda (cell)
(if (eq cell table-cell) col-count (cl-incf col-count) nil))
info 'first-match))))))