[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/swsw b0b55f010c 041/146: ; Improve the docstrings for the
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/swsw b0b55f010c 041/146: ; Improve the docstrings for the reference display functions |
Date: |
Wed, 25 May 2022 02:59:42 -0400 (EDT) |
branch: elpa/swsw
commit b0b55f010c4494427505bd33b4e867d7bd4eed02
Author: Daniel Semyonov <cmstr@dsemy.com>
Commit: Daniel Semyonov <cmstr@dsemy.com>
; Improve the docstrings for the reference display functions
---
swsw.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/swsw.el b/swsw.el
index 26ce8c5061..fa808e3bb3 100644
--- a/swsw.el
+++ b/swsw.el
@@ -244,8 +244,8 @@ If set to `lighter', use the mode line lighter of
`swsw-mode'"
(force-mode-line-update t))
(defun swsw-mode-line-display-function (switch)
- "Display window IDs on the mode line if SWITCH is non-nil, and disable
-displaying window IDs on the mode line if SWITCH is nil.
+ "Display window IDs on the mode line if SWITCH isn't `nil', and disable
+displaying window IDs on the mode line if SWITCH is `nil'.
This display function shows the window IDs at the beginning of the mode line,
similarly to `ace-window-display-mode'.
@@ -255,9 +255,10 @@ This display function respects `swsw-id-format'."
(swsw--mode-line-hide)))
(defun swsw-mode-line-conditional-display-function (switch)
- "Display window IDs on the mode line if SWITCH is non-nil and a window
-selection is in progress, and disable displaying window IDs on the mode line
-if SWITCH is nil.
+ "Add a hook to `swsw-before-select-hook' which displays window IDs on the
+mode line and add a hook to `swsw-after-select-hook' which hides window IDs
+from the mode line if SWITCH isn't `nil', and remove those hooks if SWITCH is
+`nil'.
This display function shows the window IDs at the beginning of the mode line,
similarly to `ace-window-display-mode'.
- [nongnu] branch elpa/swsw created (now bbe31e347c), ELPA Syncer, 2022/05/25
- [nongnu] elpa/swsw 024502f51f 017/146: * swsw.el (swsw-mode): Don't call 'force-mode-line-update', ELPA Syncer, 2022/05/25
- [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 <=
- [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, 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