Latest magit and git-mode in git-pack.

Using latest magit and git-mode to aid in debugging #153
Fixes #153: Ediff save bug

Checks that frame-selected-window is not a dedicated window before
changing to the current buffer.