[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 095091cf33 057/146: Handle cases where there are less
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 095091cf33 057/146: Handle cases where there are less than three tracked windows better |
Date: |
Wed, 25 May 2022 02:59:44 -0400 (EDT) |
branch: elpa/swsw
commit 095091cf3371845d8d587646c1b76be052b7dbc0
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
Handle cases where there are less than three tracked windows better
* swsw.el (swsw-select): Select the window returned by 'next-window'
instead of calling 'other-window'.
---
swsw.el | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/swsw.el b/swsw.el
index 33cf1f33dd..7f26b638c9 100644
--- a/swsw.el
+++ b/swsw.el
@@ -200,11 +200,8 @@ This command is intended to be used only when ‘swsw-mode’
is enabled."
(unwind-protect
(swsw--read-id (swsw--get-id-length))
(run-hooks 'swsw-after-select-hook))))
- (if id
- (let ((window (cdr (assoc id swsw-window-list))))
- (when window
- (select-window window)))
- (other-window 1)))
+ (let ((window (cdr (assoc id swsw-window-list))))
+ (select-window (if window window (next-window)))))
;;;###autoload
(define-minor-mode swsw-mode
- [nongnu] elpa/swsw 384dae5d45 128/146: ; Move local mode declaration to the top of NEWS, (continued)
- [nongnu] elpa/swsw 384dae5d45 128/146: ; Move local mode declaration to the top of NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 220c023a2a 088/146: ; Update copyright years, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 73a241cf38 064/146: Ensure 'swsw-id-chars' is set correctly when customized, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 3261f323e9 077/146: ; Bump version to 1.1.2, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw e43021aa7e 112/146: * swsw.el (swsw-format-id): Use 'format-spec' instead of 'format', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c864e6d524 144/146: ; Add change log for version 2.1.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw d7fe615c3f 049/146: ; Fix inconsistency between requirements in swsw.el and swsw-pkg.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 74124620af 048/146: ; Add brief usage information to the docstring of 'swsw-mode', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 83eb90586a 051/146: ; Alter comments and docstrings to comply with Emacs' conventions, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 8fc0e7dfa7 046/146: ; Bump required emacs version to 26.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 095091cf33 057/146: Handle cases where there are less than three tracked windows better,
ELPA Syncer <=
- [nongnu] elpa/swsw cacbe44c08 058/146: ; Remove unnecessary ':group' keywords from 'defcustom' calls, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0b67d7bc00 056/146: * swsw.el (swsw-display-function): Define early only when byte-compiling, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ec011dc3b9 053/146: ; Fix inconsistency in URL between swsw.el and swsw-pkg.el, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 841345d5cf 120/146: Define 'swsw-select' as a remapping of 'other-window', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw e7646bf372 129/146: ; Bump to version 2.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw d195e574c0 066/146: ; Add latest changes to the news file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5b0f4657cc 052/146: ; Simplify build process, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw bc734b9937 003/146: Use 'read-char' instead of 'read-char-from-minibuffer' to read IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 37ad725b1e 018/146: ; Update comment referencing single character IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b5b05358a3 035/146: ; Add a news file containing a detailed change log, ELPA Syncer, 2022/05/25