Function: org-table-create-or-convert-from-region
org-table-create-or-convert-from-region is an autoloaded, interactive
and byte-compiled function defined in org-table.el.gz.
Signature
(org-table-create-or-convert-from-region ARG)
Documentation
Convert region to table, or create an empty table.
If there is an active region, convert it to a table, using the function
org-table-convert-region. See the documentation of that function
to learn how the prefix argument is interpreted to determine the field
separator.
If there is no such region, create an empty table with org-table-create.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-table.el.gz
;;;###autoload
(defun org-table-create-or-convert-from-region (arg)
"Convert region to table, or create an empty table.
If there is an active region, convert it to a table, using the function
`org-table-convert-region'. See the documentation of that function
to learn how the prefix argument is interpreted to determine the field
separator.
If there is no such region, create an empty table with `org-table-create'."
(interactive "P")
(if (org-region-active-p)
(org-table-convert-region (region-beginning) (region-end) arg)
(org-table-create arg)))