Change the `h' command to only show the article buffer.
authorLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 21:30:13 +0000 (23:30 +0200)
committerLars Magne Ingebrigtsen <larsi@quimbies.gnus.org>
Fri, 1 Oct 2010 21:30:13 +0000 (23:30 +0200)
Which is what its documentation states that is should do, kind of.

lisp/ChangeLog
lisp/gnus-sum.el
lisp/gnus-win.el

index cbbcb60..c242bd4 100644 (file)
@@ -1,5 +1,11 @@
 2010-10-01  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-sum.el (gnus-summary-select-article-buffer): Show only the
+       article buffer, instead of both the article buffer and the summary
+       buffer.  Sort of suggested by Dan Jacobson.
+
+       * gnus-win.el (gnus-buffer-configuration): Add an only-article spec.
+
        * nnmbox.el (nnmbox-read-mbox): Mark buffer for deletion on Gnus exit.
        Suggested by Dan Jacobson.
 
index 2440784..5843535 100644 (file)
@@ -6939,12 +6939,12 @@ displayed, no centering will be performed."
 ;; Various summary commands
 
 (defun gnus-summary-select-article-buffer ()
-  "Reconfigure windows to show article buffer."
+  "Reconfigure windows to show the article buffer."
   (interactive)
   (if (not (gnus-buffer-live-p gnus-article-buffer))
       (error "There is no article buffer for this summary buffer")
-    (gnus-configure-windows 'article)
-    (select-window (get-buffer-window gnus-article-buffer))))
+    (select-window (get-buffer-window gnus-article-buffer))
+    (gnus-configure-windows 'only-article t)))
 
 (defun gnus-summary-universal-argument (arg)
   "Perform any operation on all articles that are process/prefixed."
index 4956be9..df88376 100644 (file)
@@ -107,6 +107,9 @@ used to display Gnus windows."
      (vertical 1.0
               (summary 0.25)
               (faq 1.0 point)))
+    (only-article
+     (vertical 1.0
+              (article 1.0 point)))
     (edit-article
      (vertical 1.0
               (article 1.0 point)))