org-mhe-store-link alters window layout
commita598bd5a02e0c854358af278eaa0af83ef4105da
authorStephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
Mon, 7 Feb 2011 15:29:28 +0000 (7 15:29 +0000)
committerBastien Guerry <bzg@altern.org>
Tue, 8 Feb 2011 15:54:53 +0000 (8 16:54 +0100)
treecebc0c466b48752e8fc407544b801c8ae9e6240c
parent88b793946bef4df484071e3a34b287e70fb0c9b5
org-mhe-store-link alters window layout

If I run M-x org-store-link when my current emacs frame is just showing
one MH-E window (and nothing else in the frame), e.g. the "show-+inbox"
buffer, then the link to that email is created okay, but the window
frames are altered so that the +inbox summary window is also shown.
In general, the previous window contents are forgotten.  I suggest
adding a 'save-window-excursion' into org-mhe-store-link so that the
window arrangement is preserved on exit from the function.

Patch below is long just because of the extra indentation.

Stephen
lisp/org-mhe.el