Repair global-auto-revert-ignore-modes (bug#42271)

Reported by Gustavo Tavares Cabral.

* lisp/autorevert.el (auto-revert--global-add-current-buffer): Fix typo.
This commit is contained in:
Mattias Engdegård 2020-07-09 09:28:12 +02:00
parent 3a446a02fb
commit c892ae65b4

View file

@ -543,7 +543,7 @@ specifies in the mode line."
;; we wouldn't know when to revert it otherwise. ;; we wouldn't know when to revert it otherwise.
(not (eq buffer-stale-function (not (eq buffer-stale-function
#'buffer-stale--default-function)))) #'buffer-stale--default-function))))
(not (memq 'major-mode global-auto-revert-ignore-modes)) (not (memq major-mode global-auto-revert-ignore-modes))
(or (null global-auto-revert-ignore-buffer) (or (null global-auto-revert-ignore-buffer)
(if (functionp global-auto-revert-ignore-buffer) (if (functionp global-auto-revert-ignore-buffer)
(not (funcall global-auto-revert-ignore-buffer (not (funcall global-auto-revert-ignore-buffer