[gnus git] branch master updated: n0-15-6-g3544579 =1= gnus-util: check that buffer is not nil
Julien Danjou <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 3544579e8e89935b7f4b641010803b1f0a5c3fd3 (commit)
from 27ec8693a5d1d67366103f333204d4e07336c22d (commit)
- Log -----------------------------------------------------------------
commit 3544579e8e89935b7f4b641010803b1f0a5c3fd3
Author: Julien Danjou <[email protected]>
Date: Fri Mar 18 18:15:08 2011 +0100
gnus-util: check that buffer is not nil
Signed-off-by: Julien Danjou <[email protected]>
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index af7920e..f18a7b4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,6 +1,7 @@
2011-03-18 Julien Danjou <[email protected]>
* gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.
+ (gnus-buffer-live-p): Check that buffer is not nil.
2011-03-17 Lars Magne Ingebrigtsen <[email protected]>
diff --git a/lisp/gnus-util.el b/lisp/gnus-util.el
index e5a3950..3f66b45 100644
--- a/lisp/gnus-util.el
+++ b/lisp/gnus-util.el
@@ -674,7 +674,7 @@ If N, return the Nth ancestor instead."
(defsubst gnus-buffer-live-p (buffer)
"Say whether BUFFER is alive or not."
- (buffer-live-p (get-buffer buffer)))
+ (and buffer (buffer-live-p (get-buffer buffer))))
(defun gnus-horizontal-recenter ()
"Recenter the current buffer horizontally."
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 1 +
lisp/gnus-util.el | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project