summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2016-03-01 16:06:24 +1100
committerLars Ingebrigtsen <larsi@gnus.org>2016-03-01 16:06:42 +1100
commit8c1503e41bb65e7d75d006c4650f5114fdc6eed2 (patch)
tree9e4ad1124cd4f27fb3e3b4e0af9e521bd2d2f4f6 /lisp/emacs-lisp
parent4694f2f90679b21797a11f579f9cb9482eb36bdf (diff)
downloademacs-8c1503e41bb65e7d75d006c4650f5114fdc6eed2.tar.gz
emacs-8c1503e41bb65e7d75d006c4650f5114fdc6eed2.tar.bz2
emacs-8c1503e41bb65e7d75d006c4650f5114fdc6eed2.zip
Make the revert command in timer-list-mode work
* lisp/emacs-lisp/timer-list.el (timer-list): Make the revert command work.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/timer-list.el3
1 files changed, 2 insertions, 1 deletions
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"