emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 24a8cc5: Define revert-buffer-function for *Memory Report*


From: Mattias Engdegård
Subject: master 24a8cc5: Define revert-buffer-function for *Memory Report*
Date: Fri, 16 Jul 2021 14:05:46 -0400 (EDT)

branch: master
commit 24a8cc5e707affad345e085b6fe8c778559533f6
Author: Mattias Engdegård <mattiase@acm.org>
Commit: Mattias Engdegård <mattiase@acm.org>

    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'.
---
 lisp/emacs-lisp/memory-report.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el
index f4f0313..1125dde 100644
--- a/lisp/emacs-lisp/memory-report.el
+++ b/lisp/emacs-lisp/memory-report.el
@@ -44,6 +44,8 @@ by counted more than once."
   (pop-to-buffer "*Memory Report*")
   (special-mode)
   (button-mode 1)
+  (setq-local revert-buffer-function (lambda (_ignore-auto _noconfirm)
+                                       (memory-report)))
   (setq truncate-lines t)
   (message "Gathering data...")
   (let ((reports (append (memory-report--garbage-collect)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]