branch: externals/emacs-gc-stats commit c08135aeaa7e4ed44afc3f0b1c018f8d9ba219b3 Author: Ihor Radchenko <yanta...@posteo.net> Commit: Ihor Radchenko <yanta...@posteo.net>
Fix variable name * emacs-gc-stats.el (emacs-gc-stats-mode): Fix typo. --- emacs-gc-stats.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/emacs-gc-stats.el b/emacs-gc-stats.el index 39a46a9433..1da4c24f9b 100644 --- a/emacs-gc-stats.el +++ b/emacs-gc-stats.el @@ -193,7 +193,7 @@ Otherwise, collect symbol." (unless emacs-gc-stats--data (emacs-gc-stats--collect-init)) ;; 5 minutes counter. - (setq emacs-gc-stats--idle-time + (setq emacs-gc-stats--idle-timer (run-with-timer emacs-gc-stats-idle-delay emacs-gc-stats-idle-delay @@ -201,8 +201,8 @@ Otherwise, collect symbol." (add-hook 'post-gc-hook #'emacs-gc-stats--collect-gc) (add-hook 'after-init-hook #'emacs-gc-stats--collect-init-end) (add-hook 'kill-emacs-hook #'emacs-gc-stats-save-session)) - (when (timerp emacs-gc-stats--idle-time) - (cancel-timer emacs-gc-stats--idle-time)) + (when (timerp emacs-gc-stats--idle-timer) + (cancel-timer emacs-gc-stats--idle-timer)) (remove-hook 'post-gc-hook #'emacs-gc-stats--collect-gc) (remove-hook 'after-init-hook #'emacs-gc-stats--collect-init-end) (remove-hook 'kill-emacs-hook #'emacs-gc-stats-save-session)))