[gnus git] branch master updated: m0-7-292-g8aa205d =1= Fix stale summary buffer name when using a single article buffer

Lars Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  8aa205d9bac6008fd7adbc35f5f1ef7594a0b551 (commit)
      from  70154aee617e9a82ad6bb3db9d400026c458ce3a (commit)


- Log -----------------------------------------------------------------
commit 8aa205d9bac6008fd7adbc35f5f1ef7594a0b551
Author: Lars Ingebrigtsen <[email protected]>
Date:   Thu Jan 30 16:02:15 2014 -0800

    Fix stale summary buffer name when using a single article buffer
    
    * gnus-art.el (gnus-article-setup-buffer): Refresh the summary buffer
    name if we're using a single article buffer.  Otherwise, it may point
    to a killed buffer (bug#13756).

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 366b71c..0d20dba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
+2014-01-31  Lars Ingebrigtsen  <[email protected]>
+
+	* gnus-art.el (gnus-article-setup-buffer): Refresh the summary buffer
+	name if we're using a single article buffer.  Otherwise, it may point
+	to a killed buffer (bug#13756).
+
 2014-01-30  Lars Ingebrigtsen  <[email protected]>
 
 	* nnmail.el (nnmail-split-it): Instead of redoing the search to restore
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index dc3fc07..6f32655 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -4550,6 +4550,7 @@ commands:
 			 nil)
 		     (error "Action aborted"))
 		 t)))
+	(let ((summary gnus-summary-buffer))
 	  (with-current-buffer name
 	    (set (make-local-variable 'gnus-article-edit-mode) nil)
 	    (gnus-article-stop-animations)
@@ -4562,8 +4563,9 @@ commands:
 	    (setq buffer-read-only t)
 	    (unless (derived-mode-p 'gnus-article-mode)
 	      (gnus-article-mode))
+	    (set (make-local-variable 'gnus-summary-buffer) summary)
 	    (setq truncate-lines gnus-article-truncate-lines)
-	  (current-buffer))
+	    (current-buffer)))
       (let ((summary gnus-summary-buffer))
 	(with-current-buffer (gnus-get-buffer-create name)
 	  (gnus-article-mode)

-----------------------------------------------------------------------
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   |    6 ++++++
 lisp/gnus-art.el |   30 ++++++++++++++++--------------
 2 files changed, 22 insertions(+), 14 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.