]> git.eshelyaron.com Git - emacs.git/commitdiff
gnus-summary-select-article-buffer: Don't re-render existing article
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 2 Mar 2017 07:56:31 +0000 (07:56 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 2 Mar 2017 07:56:31 +0000 (07:56 +0000)
* lisp/gnus/gnus-sum.el (gnus-summary-select-article-buffer):
Don't re-render existing article.

lisp/gnus/gnus-sum.el

index 2631514e425641e869ff2966a16b96a8c90adf96..ae13e7157d7aba97f9d53e444f0857b4a20cc3b5 100644 (file)
@@ -7045,8 +7045,9 @@ buffer."
   (interactive)
   (if (not (gnus-buffer-live-p gnus-article-buffer))
       (error "There is no article buffer for this summary buffer")
-    (unless (get-buffer-window gnus-article-buffer)
-      (gnus-summary-show-article))
+    (or (get-buffer-window gnus-article-buffer)
+       (eq gnus-current-article (gnus-summary-article-number))
+       (gnus-summary-show-article))
     (gnus-configure-windows
      (if gnus-widen-article-window
         'only-article