Function: org-edit-table.el
org-edit-table.el is an interactive and byte-compiled function defined
in org-src.el.gz.
Signature
(org-edit-table.el)
Documentation
Edit "table.el" table at point.
A new buffer is created and the table is copied into it. Then
the table is recognized with table-recognize. When done
editing, exit with C-c ' (org-edit-src-exit). The edited text will then replace
the area in the Org mode buffer.
Throw an error when not at such a table.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-src.el.gz
(defun org-edit-table.el ()
"Edit \"table.el\" table at point.
\\<org-src-mode-map>
A new buffer is created and the table is copied into it. Then
the table is recognized with `table-recognize'. When done
editing, exit with `\\[org-edit-src-exit]'. The edited text will \
then replace
the area in the Org mode buffer.
Throw an error when not at such a table."
(interactive)
(let ((element (org-element-at-point)))
(unless (and (eq (org-element-type element) 'table)
(eq (org-element-property :type element) 'table.el)
(org-src--on-datum-p element))
(user-error "Not in a table.el table"))
(org-src--edit-element
element
(org-src--construct-edit-buffer-name (buffer-name) "Table")
#'text-mode t)
(when (bound-and-true-p flyspell-mode) (flyspell-mode -1))
(table-recognize)
t))