Improvements for Tabulated List mode.
commit6632d361114f2d104b689e2213dce1eb3474de0a
authorChong Yidong <cyd@gnu.org>
Sun, 6 May 2012 08:32:37 +0000 (6 16:32 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 6 May 2012 08:32:37 +0000 (6 16:32 +0800)
treef632b6c5ac65baebc931028cc33d28597573b5aa
parent52b61776c594e1e4f30f8e281e7ead79d56383d5
Improvements for Tabulated List mode.

* lisp/emacs-lisp/tabulated-list.el (tabulated-list-format): Accept
additional plist in column descriptors.
(tabulated-list-init-header): Obey it.
(tabulated-list-get-entry): New function.
(tabulated-list-put-tag): Use it.  Use string-width instead of
length.
(tabulated-list--column-number): New function.
(tabulated-list-print): Use it.
(tabulated-list-print-col): New function.  Set
`tabulated-list-column-name' property on each column's text.
(tabulated-list-print-entry): Use it.
(tabulated-list-delete-entry, tabulated-list-set-col): New
functions.
(tabulated-list-sort-column): New command.

Fixes: debbugs:11337
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/tabulated-list.el