[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw bd1e527d83 121/146: * swsw.el (swsw-select, swsw-dele
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw bd1e527d83 121/146: * swsw.el (swsw-select, swsw-delete): Respect 'swsw-scope' |
Date: |
Wed, 25 May 2022 02:59:53 -0400 (EDT) |
branch: elpa/swsw
commit bd1e527d83449d5f4c0cbffaa1607faca5ffaca7
Author: Daniel Semyonov <daniel@dsemy.com>
Commit: Daniel Semyonov <daniel@dsemy.com>
* swsw.el (swsw-select, swsw-delete): Respect 'swsw-scope'
---
NEWS | 5 +++++
swsw.el | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/NEWS b/NEWS
index 600a1faf96..136d065a0b 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,11 @@ See the end of the file for an explanation of the versioning
scheme.
* 2.1.0
+** Make 'swsw-select' and 'swsw-delete' respect 'swsw-scope'.
+Previously, 'swsw-select' and 'swsw-delete' would not select/delete
+the only other window if it was on a different frame and 'swsw-scope'
+allowed tracking it.
+
** Remap 'other-window' to 'swsw-select' when 'swsw-mode' is active.
By default this changes nothing since the default binding for
'other-window' is 'C-x o'.
diff --git a/swsw.el b/swsw.el
index 9aa642cc69..a777746ed2 100644
--- a/swsw.el
+++ b/swsw.el
@@ -287,7 +287,7 @@ is enabled."
(declare (modes swsw-mode))
(interactive)
(if (< swsw-window-count 3)
- (select-window (next-window))
+ (select-window (next-window nil nil (swsw--get-scope)))
(swsw-run-window-command #'select-window)))
(defun swsw-select-minibuffer ()
@@ -311,7 +311,7 @@ is enabled."
(declare (modes swsw-mode))
(interactive)
(if (< swsw-window-count 3)
- (let ((window (next-window)))
+ (let ((window (next-window nil nil (swsw--get-scope))))
(unless (or (minibufferp (window-buffer window))
(minibufferp)) ; Selected window.
(delete-window window)))
- [nongnu] elpa/swsw 6e036789af 103/146: ; Small Makefile modifications, (continued)
- [nongnu] elpa/swsw 6e036789af 103/146: ; Small Makefile modifications, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 48e4811965 089/146: ; Remove (incorrect) description of the 'make all' target in the Makefile, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw def4d94e43 013/146: ; Update README to better reflect the current state of the package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 98c3bf944f 109/146: ; Improvement for swsw-mode's docstring, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c153d9a32c 087/146: ; Add version information to customizable variables, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw e774ead908 104/146: ; Update mail address, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 64c66d244b 062/146: * swsw.el (swsw-ids): Removed, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 95c25ee03c 022/146: ; Bump version to 1.0 and update README, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 2002152fb7 023/146: ; Add .gitignore file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f0f65362d4 095/146: * swsw.el (swsw--set-id-chars): Use 'length' instead of 'nth', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw bd1e527d83 121/146: * swsw.el (swsw-select, swsw-delete): Respect 'swsw-scope',
ELPA Syncer <=
- [nongnu] elpa/swsw cb2cb1e5cb 131/146: ; Small code style change, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dbe46d5b86 070/146: * swsw.el (swsw-select): Don't select the next window for non-existent IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 435e462891 115/146: ; Fix the required Emacs version in swsw-pkg.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b2dcc60dab 136/146: ; Explain 'swsw--id-counter' more thoroughly, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3f507e91c0 006/146: ; Fix docstring for 'swsw-mode', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 6695f8858e 034/146: ; Use '; ' for inline comment instead of '; ; ', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b5ebc9e08a 106/146: Use lambdas for ':set' functions, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 04ace20d03 063/146: ; Fix indentation and compact structure in some places, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5addab5009 027/146: ; Fix installing swsw.el as a package, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 95fc96e8c1 092/146: ; Add a link to the Info node in the customization buffer, ELPA Syncer, 2022/05/25