chiark / gitweb /
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 7276865055e71b16d33aef1b0294c81dbfb36610..0cfe467d06248bf7ebed868d0d6ee6bf5d9b3abc 100644 (file)
@@ -74,6 +74,10 @@ (setq nnimap-split-crosspost t)
 ;; We may have the misfortune to talk to an Exchange server.
 (setq imap-enable-exchange-bug-workaround t)
 
 ;; 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.
 
 ;;;--------------------------------------------------------------------------
 ;;; Local configuration.