[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw ac8efcbbd1 007/146: Assign a unique ID to an active m
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw ac8efcbbd1 007/146: Assign a unique ID to an active minibuffer |
Date: |
Wed, 25 May 2022 02:59:38 -0400 (EDT) |
branch: elpa/swsw
commit ac8efcbbd1d64841d3143cbc94932c54d531b499
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
Assign a unique ID to an active minibuffer
* swsw.el (swsw-minibuffer-id): Add user option to change the ID
assigned to the minibuffer
(swsw-update): Assign 'swsw-minibuffer-id' to the minibuffer.
(swsw--reset-and-update, swsw-mode): Allow 'walk-windows' to call
'swsw-update' on an active minibuffer.
---
swsw.el | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/swsw.el b/swsw.el
index 41d05684cd..c9573e9df7 100644
--- a/swsw.el
+++ b/swsw.el
@@ -40,6 +40,11 @@
:group 'swsw
:type '(repeat character))
+(defcustom swsw-minibuffer-id ?m
+ "ID reserved for the minibuffer."
+ :group 'swsw
+ :type '(character))
+
;;;; Simple window switching minor mode:
(defvar swsw-id-chars swsw-id-chars-base
@@ -55,7 +60,9 @@
(defun swsw-update (window)
"Update information for WINDOW."
- (let ((id (pop swsw-id-chars)))
+ (let ((id (if (window-minibuffer-p window)
+ swsw-minibuffer-id
+ (pop swsw-id-chars))))
(when id
(push (cons id window)
swsw-window-list)
@@ -65,7 +72,7 @@
"Run `swsw-reset', run `swsw-update' for all active windows and force a mode
line update for all windows."
(swsw-reset)
- (walk-windows #'swsw-update 'no-minibuffer t)
+ (walk-windows #'swsw-update nil t)
(force-mode-line-update t))
;;;###autoload
@@ -74,7 +81,7 @@ line update for all windows."
:global t
(if swsw-mode
(progn
- (walk-windows #'swsw-update 'no-minibuffer t)
+ (walk-windows #'swsw-update nil t)
(setq-default mode-line-format
`((swsw-mode
(:eval (char-to-string
- [nongnu] elpa/swsw 24720bfbe7 008/146: ; Bump version to 0.2, (continued)
- [nongnu] elpa/swsw 24720bfbe7 008/146: ; Bump version to 0.2, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ba9e82c95f 001/146: initial commit, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 1a5ce9c559 038/146: ; Add binding 'C-x o' to 'swsw-select' in 'swsw-mode-map' to the NEWS, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 7a00ef3140 039/146: ; Small documentation fixes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b0b55f010c 041/146: ; Improve the docstrings for the reference display functions, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5937f8bc6e 043/146: ; Update .gitignore to ignore some build artifacts, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw d5ab98b9db 044/146: ; Bump version to 1.1, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 5e77d34dfa 054/146: ; Modify installation section of the README file and Info node, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw cacd11a1b7 072/146: Prevent setting 'swsw-minibuffer-id' to a member of 'swsw-id-chars', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw dd65e7c8af 139/146: ; Update copyright years, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw ac8efcbbd1 007/146: Assign a unique ID to an active minibuffer,
ELPA Syncer <=
- [nongnu] elpa/swsw 08b56d124c 015/146: Add support for multi-character IDs, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 185861a2e9 010/146: Use a lighter for 'swsw-mode', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 6a9b3544c9 002/146: ; Fix 'git clone' example command in README file, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 15e188aa17 009/146: Fix some edge cases related to the minibuffer, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 0aef3311c6 014/146: ; Bump to version 0.3, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 9873ff1bd2 020/146: * swsw.el (swsw-select): Add before and after hooks., ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 4a7ea31b37 036/146: * swsw.el (swsw-mode): Bind 'C-x o' to 'swsw-select', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 63e295f599 025/146: Add a user option to customize the scope of window tracking, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 721d0208f7 026/146: Update the window list after deleting a frame, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 48db8fe39b 021/146: Add a reference implementation for a conditional display function, ELPA Syncer, 2022/05/25