From: Shitikanth <shitikanth1@gmail.com>
To: 50194@debbugs.gnu.org
Subject: bug#50194: 28.0.50; tabulated-list-print (with non-nil UPDATE argument) doesn't clean up excess entries
Date: Wed, 25 Aug 2021 00:25:00 +0530 [thread overview]
Message-ID: <CALjXJSTnjJeoNLzLDT_ePEqNQPT_sXMhsAT71BtzYWdDrDCWMA@mail.gmail.com> (raw)
(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.
next reply other threads:[~2021-08-24 18:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-24 18:55 Shitikanth [this message]
2021-08-24 19:13 ` bug#50194: 28.0.50; tabulated-list-print (with non-nil UPDATE argument) doesn't clean up excess entries Shitikanth
2021-08-25 11:35 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALjXJSTnjJeoNLzLDT_ePEqNQPT_sXMhsAT71BtzYWdDrDCWMA@mail.gmail.com \
--to=shitikanth1@gmail.com \
--cc=50194@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).