Restore Buffer-menu-use-header-line functionality.
commit1241b724c80c73731c7e5710a98886b745a211a8
authorChong Yidong <cyd@gnu.org>
Mon, 7 May 2012 05:37:38 +0000 (7 13:37 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 7 May 2012 05:37:38 +0000 (7 13:37 +0800)
tree182503d2846c9d3c134db2ca502997844081b4f4
parente5f9458fe818fd87ec99354420c3633ca928d62c
Restore Buffer-menu-use-header-line functionality.

* lisp/emacs-lisp/tabulated-list.el: Add no-header-line alternative.
(tabulated-list-use-header-line): New var.
(tabulated-list-init-header): Use it.
(tabulated-list-print-fake-header): New function.
(tabulated-list-print): Use it.
(tabulated-list-sort-button-map): Add non-header-line commands.
(tabulated-list-init-header): Add column name property to basic
labels as well.
(tabulated-list-col-sort): Handle non-header-line button case.
(tabulated-list--sort-by-column-name): Fix a corner case.

* lisp/buff-menu.el (list-buffers--refresh): Handle
Buffer-menu-use-header-line.
lisp/ChangeLog
lisp/buff-menu.el
lisp/emacs-lisp/tabulated-list.el