From 3d1af157b466c689ae2c4d1ddc1562d613d84879 Mon Sep 17 00:00:00 2001 From: Dan Kessler Date: Tue, 22 Feb 2022 10:49:32 -0500 Subject: [PATCH] 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 55b4241..83204f6 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))