From: Mark Wooding Date: Wed, 5 May 2010 14:25:19 +0000 (+0100) Subject: dot/gnus.el: Hack for closing the summary view. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/f34c1444696ee985c69147ce22d82b9d1a1f020f?hp=--cc dot/gnus.el: Hack for closing the summary view. 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. --- f34c1444696ee985c69147ce22d82b9d1a1f020f diff --git a/dot/gnus.el b/dot/gnus.el index 7276865..0cfe467 100644 --- a/dot/gnus.el +++ b/dot/gnus.el @@ -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) +;; Clean up properly when closing the summary. +(defadvice gnus-summary-exit (before mdw-kill-debris compile activate) + (gnus-summary-expand-window)) + ;;;-------------------------------------------------------------------------- ;;; Local configuration.