1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

(auto-revert-buffers): Use buffer-live-p.

This commit is contained in:
Stefan Monnier 2008-03-26 02:38:15 +00:00
parent 67af6bdd7b
commit aa657fbff9
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
* autorevert.el (auto-revert-buffers): Use buffer-live-p.
* help-fns.el (describe-function-1, describe-variable): If no
replacement is provided, don't print "use nil instead".

View 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.