emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/edit-indirect f43936b3a4 12/28: Use `quit-window' instead


From: ELPA Syncer
Subject: [nongnu] elpa/edit-indirect f43936b3a4 12/28: Use `quit-window' instead of `kill-buffer-and-window`.
Date: Thu, 7 Jul 2022 11:59:13 -0400 (EDT)

branch: elpa/edit-indirect
commit f43936b3a44f109829c93c47cec19623759d0301
Author: Colin Fraizer <colin.fraizer@gmail.com>
Commit: Colin Fraizer <colin.fraizer@gmail.com>

    Use `quit-window' instead of `kill-buffer-and-window`.
    
    This should (I think) let previously split frames retain their
    splits.
---
 edit-indirect.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/edit-indirect.el b/edit-indirect.el
index 2edb03e9ac..2f8012122a 100644
--- a/edit-indirect.el
+++ b/edit-indirect.el
@@ -337,7 +337,8 @@ called with updated positions."
   ;; Kill the overlay reference so that `edit-indirect--abort-on-kill-buffer'
   ;; won't try to call us again.
   (setq edit-indirect--overlay nil)
-  (kill-buffer-and-window))
+  ;; If we created a window, get rid of it.  Kill the buffer we created.
+  (quit-window t))
 
 (defun edit-indirect--abort-on-kill-buffer ()
   "Abort indirect edit.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]