Juri Linkov writes: >>> + (bufs (mapcan >>> + (lambda (buf) >>> + (when (and (project--buffer-check buf '("\\`[^ ]")) >>> + (or (not arg) >>> + (project--buffer-check buf '(buffer-file-name)))) >>> + (list buf))) >>> + (project-buffers pr)))) >>> + (display-buffer (list-buffers-noselect arg bufs)))) >> >> This won't survive a revert buffer, I think. (I'll show all buffers >> then.) > > This means that all uses of the BUFFER-LIST arg of 'list-buffers-noselect' > are flawed. So better would be to provide not a list of buffers, but > a predicate to filter out a list of buffers. Then the revert could use > such a predicate from e.g. a buffer-local variable. I just modify the tabulated-list-revert-hook buffer-locally. -- Akib Azmain Turja --- https://akib.codeberg.page/ GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social, Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption."