|
From: | Stefan Monnier |
Subject: | Re: Question about memory usage |
Date: | Thu, 05 Apr 2018 14:54:16 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> I found out what the problem was: > > (while t > (with-temp-buffer > (setq buffer-undo-list nil) > (insert "a") > (print (length undo-auto--undoably-changed-buffers) > #'external-debugging-output))) Aha! > The variable undo-auto--undoably-changed-buffers was storing a lot of killed > buffers. We could/should probably arrange to scan for dead buffers every time we add a new buffer to it, or from kill-buffer-hook. Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |