diff options
| author | Stefan Monnier | 2008-03-26 02:38:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-26 02:38:15 +0000 |
| commit | aa657fbff97a27f4a5cfee8f6818ee00c13437c0 (patch) | |
| tree | 28a6a38949ec9c551bfea0d536058d96e5ef3880 | |
| parent | 67af6bdd7bd5a144f2d06fb70042ee00c582ac14 (diff) | |
| download | emacs-aa657fbff97a27f4a5cfee8f6818ee00c13437c0.tar.gz emacs-aa657fbff97a27f4a5cfee8f6818ee00c13437c0.zip | |
(auto-revert-buffers): Use buffer-live-p.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/autorevert.el | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a54e2272d47..e7be006ac8f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * autorevert.el (auto-revert-buffers): Use buffer-live-p. | ||
| 4 | |||
| 3 | * help-fns.el (describe-function-1, describe-variable): If no | 5 | * help-fns.el (describe-function-1, describe-variable): If no |
| 4 | replacement is provided, don't print "use nil instead". | 6 | replacement is provided, don't print "use nil instead". |
| 5 | 7 | ||
diff --git a/lisp/autorevert.el b/lisp/autorevert.el index 2cca9b06568..dff842855e8 100644 --- a/lisp/autorevert.el +++ b/lisp/autorevert.el | |||
| @@ -530,7 +530,7 @@ the timer when no buffers need to be checked." | |||
| 530 | (not (and auto-revert-stop-on-user-input | 530 | (not (and auto-revert-stop-on-user-input |
| 531 | (input-pending-p)))) | 531 | (input-pending-p)))) |
| 532 | (let ((buf (car bufs))) | 532 | (let ((buf (car bufs))) |
| 533 | (if (buffer-name buf) ; Buffer still alive? | 533 | (if (buffer-live-p buf) |
| 534 | (with-current-buffer buf | 534 | (with-current-buffer buf |
| 535 | ;; Test if someone has turned off Auto-Revert Mode in a | 535 | ;; Test if someone has turned off Auto-Revert Mode in a |
| 536 | ;; non-standard way, for example by changing major mode. | 536 | ;; non-standard way, for example by changing major mode. |