Allow editing partially shrunk columns
commit33a9eef11ffad3f2b2a21d2eac1e34bb72978db8
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 Jan 2018 22:43:37 +0000 (25 23:43 +0100)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Thu, 25 Jan 2018 22:57:11 +0000 (25 23:57 +0100)
treedadf8f0ab7fff5f43dbc35b0097035aacd74e5fc
parent54114356331fed85d69b2e5c31c03cdf81ea22ef
Allow editing partially shrunk columns

* lisp/org-table.el (org-table-with-shrunk-field): New macro.
(org-table-get-field):
(org-table-toggle-column-width): Use new macro.
(org-table--shrunk-field): Update function.
(org-table--shrink-field): When there is a width cookie, leave first
characters editable.

* lisp/org.el (org-self-insert-command):
(org-delete-backward-char):
(org-delete-char): Small refactoring.  Handle shrink overlays.

* testing/lisp/test-org-table.el (test-org-table/toggle-column-width):
  Update tests.
lisp/org-table.el
lisp/org.el
testing/lisp/test-org-table.el