gnus-util.el (gnus-buffer-live-p): Simplify gnus-buffer-live-p.

(gnus-buffer-live-p): Check that buffer is not nil.
This commit is contained in:
Julien Danjou 2011-03-19 00:48:04 +00:00 committed by Katsumi Yamaoka
parent a904a09a8b
commit 06e9c2d94e
2 changed files with 7 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2011-03-18 Julien Danjou <julien@danjou.info>
* 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 <larsi@gnus.org>
* gnus-art.el: Require mouse, which the build bot seems to say is

View file

@ -672,11 +672,9 @@ If N, return the Nth ancestor instead."
(when (string-match "\\(<[^<]+>\\)[ \t]*\\'" references)
(match-string 1 references))))))
(defun gnus-buffer-live-p (buffer)
(defsubst gnus-buffer-live-p (buffer)
"Say whether BUFFER is alive or not."
(and buffer
(get-buffer buffer)
(buffer-name (get-buffer buffer))))
(and buffer (buffer-live-p (get-buffer buffer))))
(defun gnus-horizontal-recenter ()
"Recenter the current buffer horizontally."