(address . bug-gnu-emacs@gnu.org)
(tabulated-list-print nil t) does not seem to clean up excess remaining
entries/lines if the number of tabulated-list-entries has decreased.
Demo:
(defun demo-generate-entries (n)
(mapcar (lambda (i)
(list i (vector (format "title %s" i))))
(number-sequence 1 n)))
(let ((buf (get-buffer-create "*demo*")))
(with-current-buffer buf
(tabulated-list-mode)
(setq tabulated-list-format '[("title" 70 t)])
(setq tabulated-list-sort-key '("title"))
(setq tabulated-list-entries (demo-generate-entries 8))
(tabulated-list-print)
(pop-to-buffer buf)
(setq tabulated-list-entries (demo-generate-entries 4))
(tabulated-list-print nil t)
))
Expected behaviour:
At the end, *demo* buffer should show only 4 entries.
Observed behaviour:
*demo* buffer still holds 8 entries, still showing 4 entries that are
now removed from tabulated-list-entries.