branch: elpa/with-editor
commit 3d1af157b466c689ae2c4d1ddc1562d613d84879
Author: Dan Kessler <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
with-editor-sleeping-editor-filter: Store window configuration
Closes #107.
---
lisp/with-editor.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/with-editor.el b/lisp/with-editor.el
index 55b4241ca4..83204f6066 100644
--- a/lisp/with-editor.el
+++ b/lisp/with-editor.el
@@ -672,6 +672,8 @@ may not insert the text into the PROCESS's buffer. Then it
calls
(with-current-buffer (find-file-noselect file)
(with-editor-mode 1)
(setq with-editor--pid pid)
+ (setq with-editor-previous-winconf
+ (current-window-configuration))
(run-hooks 'with-editor-filter-visit-hook)
(funcall (or (with-editor-server-window) #'switch-to-buffer)
(current-buffer))