From 8c1503e41bb65e7d75d006c4650f5114fdc6eed2 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Tue, 1 Mar 2016 16:06:24 +1100 Subject: [PATCH] Make the revert command in timer-list-mode work * lisp/emacs-lisp/timer-list.el (timer-list): Make the revert command work. --- lisp/emacs-lisp/timer-list.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/timer-list.el b/lisp/emacs-lisp/timer-list.el index eba152325c2..9b13e52dd7c 100644 --- a/lisp/emacs-lisp/timer-list.el +++ b/lisp/emacs-lisp/timer-list.el @@ -25,7 +25,7 @@ ;;; Code: ;;;###autoload -(defun timer-list () +(defun timer-list (&optional _ignore-auto _nonconfirm) "List all timers in a buffer." (interactive) (pop-to-buffer-same-window (get-buffer-create "*timer-list*")) @@ -90,6 +90,7 @@ "Mode for listing and controlling timers." (setq truncate-lines t) (buffer-disable-undo) + (setq-local revert-buffer-function 'timer-list) (setq buffer-read-only t) (setq header-line-format (format "%4s %10s %8s %s" -- 2.39.2