diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2021-07-16 13:04:14 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2021-07-16 20:05:31 +0200 |
commit | 24a8cc5e707affad345e085b6fe8c778559533f6 (patch) | |
tree | 1ebcc2936666e4743f7aa889588d73f7a8775251 | |
parent | 4200f091b094740651f2ff7046feed0db9e98aa3 (diff) | |
download | emacs-24a8cc5e707affad345e085b6fe8c778559533f6.tar.gz |
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'.
-rw-r--r-- | lisp/emacs-lisp/memory-report.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/memory-report.el b/lisp/emacs-lisp/memory-report.el index f4f03133b0f..1125dde4055 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) |