From d0fd9809d7574c67a181225fcc1c59afdbb1295c Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Mon, 22 Jan 2018 09:12:16 +0100 Subject: Finish changes in autorevert from commit 530bb2dc68 * lisp/autorevert.el (auto-revert-buffers): Check `auto-revert-timer' being a timerp. * test/lisp/filenotify-tests.el (file-notify-test04-autorevert): Adapt test in order to cover changed behavior of autorevert. --- lisp/autorevert.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/autorevert.el') diff --git a/lisp/autorevert.el b/lisp/autorevert.el index da8942664b7..cf145e0ee38 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el @@ -803,7 +803,8 @@ the timer when no buffers need to be checked." ;; Check if we should cancel the timer. (when (and (not global-auto-revert-mode) (null auto-revert-buffer-list)) - (cancel-timer auto-revert-timer) + (if (timerp auto-revert-timer) + (cancel-timer auto-revert-timer)) (setq auto-revert-timer nil))))) -- cgit v1.2.3