[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 300a4e8e61 084/146: * swsw.el (swsw-delete): Fix when
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 300a4e8e61 084/146: * swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer |
Date: |
Wed, 25 May 2022 02:59:50 -0400 (EDT) |
branch: elpa/swsw
commit 300a4e8e61235f1db55730fb1e56ec4e39a1d4b7
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
* swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer
---
swsw.el | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/swsw.el b/swsw.el
index fa884dd5f7..78476eb835 100644
--- a/swsw.el
+++ b/swsw.el
@@ -299,7 +299,10 @@ Otherwise, window deletion allows either choosing a window
by its ID
This command is intended to be used only when ‘swsw-mode’ is enabled."
(interactive)
(if (< swsw-window-count 3)
- (delete-window (next-window))
+ (let ((window (next-window)))
+ (unless (or (minibufferp (window-buffer window))
+ (minibufferp)) ; Selected window.
+ (delete-window window)))
(swsw--run-window-command #'delete-window)))
(defvar swsw-command-map (let ((map (make-sparse-keymap)))
- [nongnu] elpa/swsw 57a040f4be 140/146: ; Indicate the mailing list is the "maintainer" of the package, (continued)
- [nongnu] elpa/swsw 57a040f4be 140/146: ; Indicate the mailing list is the "maintainer" of the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0d7bf97dbb 142/146: ; Prepare for NonGNU ELPA inclusion, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 307b891692 127/146: ; Small fix in NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c884983ae2 090/146: ; Fix makefile for OpenBSD, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f66c043abc 067/146: Only call 'swsw-update' automatically when it's bound, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dc4595546a 094/146: ; Change a message to a (more fitting in this context) user-error, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b3e00165f2 073/146: ; Add latest changes to the NEWS file and indicate that 1.1.2 is WIP, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 69dfbd08de 083/146: ; Bump version to 2.0, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dee158840a 100/146: ; Indicate that ELPA installation is not yet available, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 09bb140ee3 096/146: * swsw.el (swsw-update): Use 'dotimes' instead of 'while', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 300a4e8e61 084/146: * swsw.el (swsw-delete): Fix when the other tracked window is a minibuffer,
ELPA Syncer <=
- [nongnu] elpa/swsw 8b8c353938 143/146: ; Generate swsw-pkg.el' automatically, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 51b8c1eb7c 080/146: ; Update documentation according to latest changes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 522bfb2da0 074/146: ; Add versioning scheme information to the NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 92abfc5de4 119/146: ; Make some long lines short, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 910aea2c75 117/146: ; Declare all window commands should be called while 'swsw-mode' is active, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 862d945bdb 101/146: ; Ignore Emacs' backup files, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0a3edee2e5 055/146: ; Bump version to 1.1.1 and update NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f9f64e0559 060/146: * swsw.el (swsw--get-id-length): Return 1 when there is one window tracked, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 07f26210e8 086/146: ; Add 'swsw-delete' fix to the NEWS file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 8044341fdb 040/146: ; Update README to no longer suggest binding 'C-x o' in 'swsw-mode-map', ELPA Syncer, 2022/05/25