]> git.eshelyaron.com Git - emacs.git/commitdiff
Repair global-auto-revert-ignore-modes (bug#42271)
authorMattias Engdegård <mattiase@acm.org>
Thu, 9 Jul 2020 07:28:12 +0000 (09:28 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 9 Jul 2020 07:29:14 +0000 (09:29 +0200)
Reported by Gustavo Tavares Cabral.

* lisp/autorevert.el (auto-revert--global-add-current-buffer): Fix typo.

lisp/autorevert.el

index 3151b6e590d3ed82e5f900d813df2031b3134e9d..011febfe72877630106406c4163c420d582c053c 100644 (file)
@@ -543,7 +543,7 @@ specifies in the mode line."
                       ;; we wouldn't know when to revert it otherwise.
                       (not (eq buffer-stale-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)
                  (if (functionp global-auto-revert-ignore-buffer)
                      (not (funcall global-auto-revert-ignore-buffer