Mercurial > emacs
changeset 93216:298da4c56fcb
(auto-revert-buffers): Use buffer-live-p.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Wed, 26 Mar 2008 02:38:15 +0000 |
parents | 53d5f10d34bc |
children | e9fe0099fac2 |
files | lisp/ChangeLog lisp/autorevert.el |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Mar 26 02:36:45 2008 +0000 +++ b/lisp/ChangeLog Wed Mar 26 02:38:15 2008 +0000 @@ -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".
--- a/lisp/autorevert.el Wed Mar 26 02:36:45 2008 +0000 +++ b/lisp/autorevert.el Wed Mar 26 02:38:15 2008 +0000 @@ -530,7 +530,7 @@ (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.