dot/gnus.el: Hack for closing the summary view.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 5 May 2010 14:25:19 +0000 (15:25 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 5 May 2010 16:17:07 +0000 (17:17 +0100)
The problem is that `q' and `c' don't delete the summary window when
both the summary and message windows are showing, so the group buffer
takes its place in the old message window, and some other buffer appears
where the summary was.

Fix it with some advice.  Hack hack.

dot/gnus.el

index 7276865..0cfe467 100644 (file)
 ;; We may have the misfortune to talk to an Exchange server.
 (setq imap-enable-exchange-bug-workaround t)
 
+;; Clean up properly when closing the summary.
+(defadvice gnus-summary-exit (before mdw-kill-debris compile activate)
+  (gnus-summary-expand-window))
+
 ;;;--------------------------------------------------------------------------
 ;;; Local configuration.