[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw 9873ff1bd2 020/146: * swsw.el (swsw-select): Add befo
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw 9873ff1bd2 020/146: * swsw.el (swsw-select): Add before and after hooks. |
Date: |
Wed, 25 May 2022 02:59:39 -0400 (EDT) |
branch: elpa/swsw
commit 9873ff1bd2f7ff4d60d1fbcefa3f71f1061ebedd
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
* swsw.el (swsw-select): Add before and after hooks.
---
swsw.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/swsw.el b/swsw.el
index 1140c8a864..ca3d10d348 100644
--- a/swsw.el
+++ b/swsw.el
@@ -161,11 +161,13 @@ If set to `lighter', use the mode line lighter of
`swsw-mode'"
"Select window by its ID."
;; If there are less than 3 windows, don't get an ID.
(interactive (unless (< (length swsw-window-list) 3)
+ (run-hooks 'swsw-before-select-hook)
(swsw--read-id (swsw--get-id-length))))
(if id
(let ((window (cdr (assoc id swsw-window-list))))
(when window
- (select-window window)))
+ (select-window window)
+ (run-hooks 'swsw-after-select-hook)))
(other-window 1)))
;;;; Display functions:
- [nongnu] elpa/swsw d5ab98b9db 044/146: ; Bump version to 1.1, (continued)
- [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, 2022/05/25
- [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 <=
- [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
- [nongnu] elpa/swsw 4c84ca310f 016/146: ; Update README to reflect recent changes, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw a816f208e9 005/146: Simplify the format of 'swsw-window-list', ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw f9a901c809 004/146: * swsw.el (swsw-id-chars-base): Remove erroneous quote, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 96809a6cae 019/146: Add the ability to change the way window IDs are displayed, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw c08a9b1e58 024/146: ; Fix a docstring, ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw b6277eb31f 037/146: ; Indicate that version 1.1 is still in development in the NEWS file, ELPA Syncer, 2022/05/25