From 28090d40d7e1209d8c434c3d2397c8cbfe715abc Mon Sep 17 00:00:00 2001
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Date: Mon, 25 Oct 2010 05:43:08 +0000
Subject: [PATCH] gnus-sum.el (gnus-summary-select-article): Fix type error in
 checking the original article buffer.

---
 lisp/gnus/ChangeLog   | 5 +++++
 lisp/gnus/gnus-sum.el | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 58041943c09..269d4f1de79 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-25  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+	* gnus-sum.el (gnus-summary-select-article): Fix type error in checking
+	the original article buffer.
+
 2010-10-24  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
 	* nnimap.el (nnimap-request-head): New function.
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index 7380ccce152..ca540b0f22f 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -7593,7 +7593,7 @@ be displayed."
 		       (not (eq article (cdr gnus-article-current)))
 		       (not (equal (car gnus-article-current)
 				   gnus-newsgroup-name))
-		       (not (buffer-name gnus-original-article-buffer))))
+		       (not (get-buffer gnus-original-article-buffer))))
 	      (and (not gnus-single-article-buffer)
 		   (or (null gnus-current-article)
 		       (not (eq gnus-current-article article))))
-- 
2.39.5