org-table: Move table column with leaving text-properties untouched
commitfe97948e89b17a430d993cb732c240b3b7785ae7
authorStefan-W. Hahn <stefan.hahn@s-hahn.de>
Sun, 12 Feb 2017 11:41:19 +0000 (12 12:41 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Mon, 13 Feb 2017 14:37:53 +0000 (13 15:37 +0100)
treec6f7fef1e8ef432bc3ad92b0811677d9fd0c7939
parentb5b44f918dc66af95f5f7d0f9c9f1cddfb1a73cc
org-table: Move table column with leaving text-properties untouched

* lisp/org-table.el (org-table-move-column): Use `transpose-regions'.

Moving org-table rows is implemented with delete-region and insert which
preserve text-properties. Moving org-table columns is implemented
with replace-string, which removes text-properties.

My proposal is to use transpose-regions in org-table-move-column which
will preserve text-properties when moving columns in org-tables.
lisp/org-table.el