(gnus-buffer-live-p): Check that buffer is not nil.
+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
(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."