]> code.delx.au - gnu-emacs/blobdiff - lisp/autorevert.el
(proced-mode): Redefine as just the major-mode.
[gnu-emacs] / lisp / autorevert.el
index 2cca9b065687afda4aed6d8b32a01644c218bc27..dff842855e8bf7aad76d9ec604c9006288f7e489 100644 (file)
@@ -530,7 +530,7 @@ the timer when no buffers need to be checked."
                  (not (and auto-revert-stop-on-user-input
                            (input-pending-p))))
        (let ((buf (car bufs)))
-         (if (buffer-name buf)         ; Buffer still alive?
+          (if (buffer-live-p buf)
              (with-current-buffer buf
                ;; Test if someone has turned off Auto-Revert Mode in a
                ;; non-standard way, for example by changing major mode.