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

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

[elpa] externals/transient 88031d6891 14/23: transient--delete-window: E


From: Jonas Bernoulli
Subject: [elpa] externals/transient 88031d6891 14/23: transient--delete-window: Ensure buffer is always killed
Date: Sun, 22 Dec 2024 08:44:40 -0500 (EST)

branch: externals/transient
commit 88031d689108714b1a41618c3f0fd7e2d60d0b5f
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    transient--delete-window: Ensure buffer is always killed
    
    The transient window is expected to be alive when this function is
    called, so this shouldn't make a difference, but it also does not
    hurt to be a bit defensive.
---
 lisp/transient.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lisp/transient.el b/lisp/transient.el
index cb993feef9..ac05ea044b 100644
--- a/lisp/transient.el
+++ b/lisp/transient.el
@@ -2495,11 +2495,11 @@ value.  Otherwise return CHILDREN as is.")
           (if (window-parent win)
               (delete-window win)
             (delete-frame (window-frame win) t)))))
-      (when (buffer-live-p transient--buffer)
-        (kill-buffer transient--buffer))
-      (setq transient--buffer nil)
       (when remain-in-minibuffer-window
-        (select-window remain-in-minibuffer-window)))))
+        (select-window remain-in-minibuffer-window))))
+  (when (buffer-live-p transient--buffer)
+    (kill-buffer transient--buffer))
+  (setq transient--buffer nil))
 
 (defun transient--export ()
   (setq transient-current-prefix transient--prefix)



reply via email to

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