Function: org-table-maybe-eval-formula
org-table-maybe-eval-formula is an autoloaded and byte-compiled
function defined in org-table.el.gz.
Signature
(org-table-maybe-eval-formula)
Documentation
Check if the current field starts with "=" or ":=".
If yes, store the formula and apply it.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
;;;###autoload
(defun org-table-maybe-eval-formula ()
"Check if the current field starts with \"=\" or \":=\".
If yes, store the formula and apply it."
;; We already know we are in a table. Get field will only return a formula
;; when appropriate. It might return a separator line, but no problem.
(when org-table-formula-evaluate-inline
(let* ((field (org-trim (or (org-table-get-field) "")))
named eq)
(when (string-match "^:?=\\(.*[^=]\\)$" field)
(setq named (equal (string-to-char field) ?:)
eq (match-string 1 field))
(org-table-eval-formula (and named '(4))
(org-table-formula-from-user eq))))))