Commit 24a8cc5e authored by Mattias Engdegård's avatar Mattias Engdegård
Browse files

Define revert-buffer-function for *Memory Report*

* lisp/emacs-lisp/memory-report.el (memory-report):
Allow the memory report buffer to be updated by pressing 'g'.
parent 4200f091
Pipeline #11443 failed with stages
in 1 minute and 4 seconds
......@@ -44,6 +44,8 @@ by counted more than once."
(pop-to-buffer "*Memory Report*")
(button-mode 1)
(setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm)
(setq truncate-lines t)
(message "Gathering data...")
(let ((reports (append (memory-report--garbage-collect)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment