branch: externals/dired-preview
commit f6bb0e32719492b1f2ab6b2aa77973ace7d67098
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Add TODO to only accummulate a fixed size of buffers
Thanks to Bruno Boal for bringing this matter to my attention and for
checking the workaround with me: <https://git.sr.ht/~bboal>. This was
done in a private channel and the information is shared with
permission.
---
dired-preview.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dired-preview.el b/dired-preview.el
index 01d962c2b9..99c2b3785c 100644
--- a/dired-preview.el
+++ b/dired-preview.el
@@ -226,6 +226,8 @@ aforementioned user option."
(delete-window window)))
(dired-preview--get-windows)))
+;; TODO 2023-07-05: We need a garbage collection function so that we
+;; do not accummulate too many buffers that exceed a given threshold.
(defun dired-preview--kill-buffers ()
"Kill preview buffers."
(mapc