summaryrefslogtreecommitdiff
path: root/lisp/autorevert.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2019-04-30 15:53:56 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2019-04-30 15:55:13 +0200
commit826f1e260121edc5185e0ed3fa20a781fbddc9a2 (patch)
treeca498ecb988899961fe37c5a907e288d21383e37 /lisp/autorevert.el
parent28853721681436a4e0adecce1df428feec4f3211 (diff)
downloademacs-826f1e260121edc5185e0ed3fa20a781fbddc9a2.tar.gz
* lisp/autorevert.el (auto-revert-avoid-polling): Fix :set form.
Diffstat (limited to 'lisp/autorevert.el')
-rw-r--r--lisp/autorevert.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/autorevert.el b/lisp/autorevert.el
index 6f5ca75ddf8..cdd8223fffd 100644
--- a/lisp/autorevert.el
+++ b/lisp/autorevert.el
@@ -322,7 +322,8 @@ the value of this variable."
:type 'boolean
:set (lambda (variable value)
(set-default variable value)
- (auto-revert-set-timer))
+ (when (fboundp 'auto-revert-set-timer)
+ (auto-revert-set-timer)))
:version "27.1")
;; Internal variables: