Ever since he posted it last December, I’ve been a huge fan of Magnar Sveen’s hack to display magit-status
in full screen and then restore the previous window configuration upon quitting. It’s nice because you can commit a file and then have everything back the way it was.
Yesterday, it stopped working. After a little sniffing around, I discovered that the problem was that magit-quit-window
was renamed to magit-mode-quit-window
. If you used the code that Sveen posted it’s probably still working for you but I used some revised code suggested in a comment by Brad Wright. The idea is to call the normal termination routine and then restore the window configuration.
I used slightly different code
(defadvice magit-quit-window (after magit-restore-screen activate) (jump-to-register :magit-fullscreen))))
from Wright’s but the fix is the same with either version. Simply change the magit-quit-window
to magit-mode-quit-window
and everything will work again.