tabulated-list: extend truncation into next align-right column
commitdb43613307bb05d0f43d2d5649b5bb2f29876cee
authorTino Calancha <tino.calancha@gmail.com>
Mon, 14 Nov 2016 08:31:44 +0000 (14 17:31 +0900)
committerTino Calancha <tino.calancha@gmail.com>
Mon, 14 Nov 2016 08:31:44 +0000 (14 17:31 +0900)
treed0564b9ae8250020e779193dcdffb6d0d213a323
parent0bf888422d52a46985f68f6f8fd53cf7f889ee60
tabulated-list: extend truncation into next align-right column

See discussion on:
https://lists.gnu.org/archive/html/emacs-devel/2016-10/msg01101.html
* lisp/emacs-lisp/tabulated-list.el
(tabulated-list--near-rows): New variable.
(tabulated-list-print, tabulated-list-set-col): Use it.
(tabulated-list--col-local-max-widths): New defsubst.
(tabulated-list-print-col): Use it.  If the next column is
align-right, and has some space left then don't truncate to width,
use some of the available space from the next column.
lisp/emacs-lisp/tabulated-list.el